Configuring The Root Logger
Configuring a root logger is mandatory for LogBox. This is very easy and just a few arguments.
1
public void root([numeric levelMin="-1",] [numeric levelMax="4",] string appenders)
Copied!

Parameters

Name
Description
levelMin
The default minimum log level for the root logger. (OPTIONAL. Defaults to 0 [FATAL].)
levelMax
The default maximum log level for the root logger. (OPTIONAL. Defaults to 4 [DEBUG].)
appenders
A list of appenders to configure the root logger with. Use * to add all registered appenders
1
config.root( appenders="*" );
2
config.root( levelMax="WARN", appenders="console,files" );
3
config.root( levelMin="INFO", levelMax="DEBUG", appenders="*" );
Copied!
Copy link
Contents
Parameters