PyDocs

Nav

Generic Operating System Services

Logger.setLevel

logging

method of Logger (source)
  • Logger.setLevel(level)
Set the logging level of this logger.  level must be an int or a str.
Changed in 3.2
  • 3.2: The level parameter now accepts a string representation of the level such as ‘INFO’ as an alternative to the integer constants such as INFO. Note, however, that levels are internally stored as integers, and methods such as e.g. getEffectiveLevel() and isEnabledFor() will return/expect to be passed integers.
0 Examples
No examples for logging/Logger.setLevel.
See Also
No see-alsos for logging/Logger.setLevel
0 Notes
No notes for Logger.setLevel