This will configure the logger level. This allows to turn DEBUG, INFO, WARN and ERROR messages on and off.

logger.setLevel(level)

Arguments

level

the level of the message (ALL, DEBUG, INFO, WARN, ERROR, OFF)

Value

When logger level is set, the previous level is returned invisibly. This can be passed to logger.setLevel() to restore the previous level.

Author

Rob Kooper

Examples

if (FALSE) { # \dontrun{
logger.setLevel('DEBUG')
} # }