Version: 9.15.0
logger.ExtLogger Class Reference

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

Inheritance diagram for logger.ExtLogger:

Public Member Functions

def __init__ (self, keyword="KEY", level=salome.kernel.logconfig.loggingLevel, color=None, sourceFileName=None)
 
def debug (self, message)
 Log a DEBUG message with exception information (equivalent to Logger.debug(message, exc_info = True) ). More...
 
def showDebug (self)
 Log all messages, including DEBUG level messages (equivalent to setLevel(logging.DEBUG)). More...
 
def setLogFile (self, logFilename)
 Define a log file to record the log messages (in addition to the standard output). More...
 
def setColor (self, color)
 Set the color of log messages on color-capable terminals. More...
 
def closeLogFile (self)
 Close the log file. More...
 
def hideDebug (self)
 Hide DEBUG level messages (equivalent to setLevel(logging.INFO)). More...
 

Private Attributes

 _baseFormatString
 
 _baseFormatter
 
 _stdoutStream
 
 _stdoutHandler
 
 _fileHandler
 

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) .

Constructor & Destructor Documentation

◆ __init__()

def logger.ExtLogger.__init__ (   self,
  keyword = "KEY",
  level = salome.kernel.logconfig.loggingLevel,
  color = None,
  sourceFileName = None 
)

Reimplemented from logger.Logger.

References logger.ExtLogger.debug().

Member Function Documentation

◆ closeLogFile()

def logger.Logger.closeLogFile (   self)
inherited

◆ debug()

def logger.ExtLogger.debug (   self,
  message 
)

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

References logger.TEST_Logger().

Referenced by logger.ExtLogger.__init__().

◆ hideDebug()

def logger.Logger.hideDebug (   self)
inherited

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

◆ setColor()

◆ setLogFile()

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

◆ showDebug()

def logger.Logger.showDebug (   self)
inherited

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

Field Documentation

◆ _baseFormatString

logger.Logger._baseFormatString
privateinherited

◆ _baseFormatter

◆ _fileHandler

◆ _stdoutHandler

logger.Logger._stdoutHandler
privateinherited

◆ _stdoutStream

logger.Logger._stdoutStream
privateinherited