Logger

8 tutorials Updated 25 Mar 2017

  1. 1 critical() method of logger class The critical() method of logger class logs messages with severity logging.CRITICAL. An example python program that logs a with logging.CRITICAL severity is given. 25 Mar 2017
  2. 2 debug() method of logger class debug() method logs a message with severity of logging.DEBUG to the stderr. Based on the optional parameter passed debug prints exception and stack information 24 Mar 2017
  3. 3 error() method of logger class with Example The error() method of logger class is to log a message with severity logging.ERROR. A sample program using python logger class and logger.error() method is provided. 25 Mar 2017
  4. 4 getEffectiveLevel() method of logger class getEffectiveLevel() method returns the current effective log level of the logger object.Till the root logger is traversed until value other than NOTSET is found and returned. 24 Mar 2017
  5. 5 info() method of Logger class in Python info() logs a message of severity level logging.INFO. into system.err. Through optional parameters exception and stack information can be added to the message. 24 Mar 2017
  6. 6 logger class The logger class in Python implements the logging methods for most common severity levels used by developers. Logger objects can be given a name as well. 24 Mar 2017
  7. 7 log() function of logger class in Python with Example The log() function of Python logger class records a message of specified severity into the logger object. If no handler object is specified the log is written to stderr. 25 Mar 2017
  8. 8 warning() method of logger class warning() method of logger class in Python writes a message of severity logging.WARNING to the system.stderr which is generally mapped to the console. 25 Mar 2017