Learn R Programming

logging (version 0.6-85)

basicConfig: bootstrapping the logging package

Description

'basicConfig' and 'logReset' provide a way to put the logging package in a know initial state.

Usage

basicConfig(level)
logReset()

Arguments

level
the logging level of the root logger. defaults to INFO. please do notice that this has no effect on the handling level of the handler that basicConfig attaches to the root logger.

Details

[object Object],[object Object]

Examples

Run this code
library(logging)
basicConfig()
logdebug("not shown, basic is INFO")
logwarn("shown and timestamped")
logReset()
logwarn("not shown, as no handlers are present after a reset")

Run the code above in your browser using DataLab