SetLogLevel(Stringnameorpattern String Level)
This API can be used to set a specific logger to a specific level, such as
SetLogLeve
l("as.kit
", "debug
") will set "as.ki
t" to debug where as
SetLogLevel
("as*
", "debug
") will set all loggers starting with "as
" to debug.
The system runs through all level configurations when setting the level and the last match supersedes previous configurations.
If you decide to invoke
SetLogLevel
("as*"
,"debug
") and then
SetLogLevel
("as.kit
","info
"), then "as.kit
" will be INFO.
Similarly, if you decide to invoke
SetLogLevel
("as.kit
","debug
") and then
SetLogLevel
("as*
","info
"), then "as.kit
" which will be INFO.
You can specify more than one family of loggers with different log levels via the cdd log configuration.
For example,
<roles>dashboard*:debug sql*:debug as*:info</roles>
The log configuration is processed left to right, and therefore
<roles>as*:info as.kit:debug</roles>
will set "as.kit
" to debug and
<roles>as.kit:info as*:debug</roles>
will set "as.kit
" to debug.