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 hold of a handler.

Usage

1
setLevel(level, container)

Arguments

level

the new level for this object. can be numeric or character.

container

a logger or a handler.

Examples

1
2
3
  basicConfig()
  setLevel('FINEST')
  setLevel('DEBUG', getHandler('basic.stdout'))