Version: 8.3.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
logger.ExtLogger Class Reference

This class extends Logger class and adds exception information when DEBUG messages are recorded. More...

Inheritance diagram for logger.ExtLogger:
Inheritance graph

Public Member Functions

def __init__
 
def debug
 Log a DEBUG message with exception information (equivalent to Logger.debug(message, exc_info = True) ). More...
 
def showDebug
 Log all messages, including DEBUG level messages (equivalent to setLevel(logging.DEBUG)). More...
 
def setLogFile
 Define a log file to record the log messages (in addition to the standard output). More...
 
def setColor
 Set the color of log messages on color-capable terminals. More...
 
def closeLogFile
 Close the log file. More...
 
def hideDebug
 Hide DEBUG level messages (equivalent to setLevel(logging.INFO)). More...
 
def fatal
 Log a message with CRITICAL level. More...
 

Detailed Description

This class extends Logger class and adds exception information when DEBUG messages are recorded.

It exists mainly for backward compatibility, as the same thing can be done by calling Logger.debug(message, exc_info = True) .

Member Function Documentation

def logger.ExtLogger.debug (   self,
  message 
)

Log a DEBUG message with exception information (equivalent to Logger.debug(message, exc_info = True) ).

def logger.Logger.showDebug (   self)
inherited

Log all messages, including DEBUG level messages (equivalent to setLevel(logging.DEBUG)).

def logger.Logger.setLogFile (   self,
  logFilename 
)
inherited

Define a log file to record the log messages (in addition to the standard output).

def logger.Logger.setColor (   self,
  color 
)
inherited

Set the color of log messages on color-capable terminals.

If color is None, the default color will be used.

def logger.Logger.closeLogFile (   self)
inherited

Close the log file.

def logger.Logger.hideDebug (   self)
inherited

Hide DEBUG level messages (equivalent to setLevel(logging.INFO)).

def logger.Logger.fatal (   self,
  message 
)
inherited

Log a message with CRITICAL level.

This method only exists for backward compatibility and is equivalent to critical(message).