setLevel {logging}R Documentation

Set logging.level for the object.

Description

Alter an existing logger or handler, setting its logging.level to a new value. You can access loggers by name, while you must use getHandler to get a handler.

Usage

setLevel(level, container = "")

Arguments

level

The new level for this object. Can be numeric or character.

container

a logger, its name or a handler. Default is root logger.

Examples

basicConfig()
setLevel("FINEST")
setLevel("DEBUG", getHandler("basic.stdout"))


[Package logging version 0.10-108 Index]