To manage the log level for a log, use the following rhino-console command or related MBean operation.
Console command: setloglevel
Command |
setloglevel <logKey> <logLevel>
Description
Set the log level for a logger.
Required Arguments
logKey The log key of the logger.
logLevel The log level.
|
|---|---|
Example |
$ ./rhino-console setloglevel rhino.main info Log level for rhino.main set to: INFO |
Console command: getloglevel
Command |
getloglevel <logKey>
Description
Get the configured log level for a logger. Displays the effective log level if
no explicit level is set.
Required Arguments
logKey The log key of the logger.
|
|---|---|
Examples |
$ ./rhino-console getloglevel rhino Logger rhino does not exist but it has sub-loggers. Log level for rhino is not set. Effective (inherited) log level is: INFO $ ./rhino-console getloglevel rhino.main Log level for rhino.main is: INFO |
