Не подтверждена Коммит 75a15395 создал по автору Aleksei Tirman's avatar Aleksei Tirman Зафиксировано автором GitHub
Просмотр файлов

Logging: the plugin instantiates the default logger even when a custom one is provided (#3252)

* KTOR-5186 Do not create the default logger if a custom one is provided
владелец 0a663271
......@@ -39,10 +39,16 @@ public class Logging private constructor(
*/
internal var filters = mutableListOf<(HttpRequestBuilder) -> Boolean>()
private var _logger: Logger? = null
/**
* Specifies a [Logger] instance.
*/
public var logger: Logger = Logger.DEFAULT
public var logger: Logger
get() = _logger ?: Logger.DEFAULT
set(value) {
_logger = value
}
/**
* Specifies the log the logging level.
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать