setLoggingLevel

Sets the default logging level. The logging level for a specific category can be overridden using the setLoggingLevel(category, upTo) overload.

Parameters

upTo

Log messages with lower severity than this parameter will be filtered out. If the parameter is empty, all log messages are filtered out, i.e., logging is disabled.


open fun setLoggingLevel(@NonNull category: String, @Nullable upTo: LoggingLevel)

Sets the logging level for provided category. If set, takes precedence over the default logging level.

Parameters

category

Category that should be used for applied configuration.

upTo

Log messages for provided category and with lower severity than this parameter will be filtered out. If the parameter is empty, all log messages are filtered out, i.e., logging is disabled.