RLRP routing  v.0.1.0
routing_logging.LogWrapper Class Reference

Class for overriding default logging methods. More...

Collaboration diagram for routing_logging.LogWrapper:
Collaboration graph

Public Member Functions

def __init__ (self, logger_object)
 Constructor. More...
 
def info (self, msg, args, kwargs)
 Info log method. More...
 
def debug (self, msg, args, kwargs)
 Debug log method. More...
 
def error (self, msg, args, kwargs)
 Error log method. More...
 
def warning (self, msg, args, kwargs)
 Warning log method. More...
 
def critical (self, msg, args, kwargs)
 Critical log method. More...
 

Public Attributes

 logger_object
 Reference to the Python logger object. More...
 

Detailed Description

Class for overriding default logging methods.

Handles the log methods (info, debug, error, etc.) called from the modules, and forwards them into the global queue so the LoggingHandler thread will perform the actual writing operation.

Constructor & Destructor Documentation

def routing_logging.LogWrapper.__init__ (   self,
  logger_object 
)

Constructor.

Parameters
selfThe object pointer.
logger_objectReference to the Python logger object.
Returns
None

Member Function Documentation

def routing_logging.LogWrapper.critical (   self,
  msg,
  args,
  kwargs 
)

Critical log method.

Parameters
selfThe object pointer.
msgMessage to be logged.
*argsArguments to the message, if any.
**kwargsKey arguments to the message, if any.
Returns
None
def routing_logging.LogWrapper.debug (   self,
  msg,
  args,
  kwargs 
)

Debug log method.

Parameters
selfThe object pointer.
msgMessage to be logged.
*argsArguments to the message, if any.
**kwargsKey arguments to the message, if any.
Returns
None
def routing_logging.LogWrapper.error (   self,
  msg,
  args,
  kwargs 
)

Error log method.

Parameters
selfThe object pointer.
msgMessage to be logged.
*argsArguments to the message, if any.
**kwargsKey arguments to the message, if any.
Returns
None
def routing_logging.LogWrapper.info (   self,
  msg,
  args,
  kwargs 
)

Info log method.

Parameters
selfThe object pointer.
msgMessage to be logged.
*argsArguments to the message, if any.
**kwargsKey arguments to the message, if any.
Returns
None
def routing_logging.LogWrapper.warning (   self,
  msg,
  args,
  kwargs 
)

Warning log method.

Parameters
selfThe object pointer.
msgMessage to be logged.
*argsArguments to the message, if any.
**kwargsKey arguments to the message, if any.
Returns
None

Member Data Documentation

routing_logging.LogWrapper.logger_object

Reference to the Python logger object.


The documentation for this class was generated from the following file: