DefaultLoggerFactory.setModuleLevel

Sets the logging level for a given module pattern regular expression. When this factory prepares a logger for a given module (or logger name if the developer has defined a custom name), it will give that logger a logging level according to the configured rootLoggingLevel of this factory. Then, if it finds a module pattern set using this function, it will use the declared level instead. Module patterns are searched in the order that they're defined.

class DefaultLoggerFactory
void
setModuleLevel

Parameters

modulePattern string

The module pattern to match against. This is compiled as a regular expression.

level Level

The logging level to apply to Loggers whose name matches the given module pattern.