logger.setLevel: Set console log level

View source: R/utils-logging.R

logger.setLevelR Documentation

Set console log level

Description

By default, the logger threshold is set to FATAL so that the console will typically receive no log messages. By setting the level to one of the other log levels: TRACE, DEBUG, INFO, WARN, ERROR users can see logging messages while running commands at the command line.

Usage

logger.setLevel(level)

Arguments

level

Threshold level.

Value

No return value.

Note

All functionality is built on top of the excellent futile.logger package.

See Also

logger.setup

Examples

## Not run: 
# Set up console logging only
logger.setup()
logger.setLevel(DEBUG)

## End(Not run)


MazamaCoreUtils documentation built on Nov. 14, 2023, 1:09 a.m.