Package rrlog :: Package contrib :: Module richlog :: Class RichLog1
[hide private]
[frames] | no frames]

Class RichLog1

source code

object --+
         |
        RichLog1

A wrapper for rrlog.Log. It adds functionality (convenience methods) It cannot be wrapped again (Doesn't behave exactly like the wrapped log.)

Instance Methods [hide private]
 
__init__(self, log)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(self, *args, **kwargs)
only delegates to the wrapped log
source code
 
log(self, *args, **kwargs)
REMOVED: The log.log() is removed.
source code
 
trace(self, message='', use_ex=False)
logs message plus a stacktrace (each stack line as a single log message.) Can use the current trace, of the trace of the last exception.
source code
 
dict(self, aDict, message='')
logs a dict, each item as a single log msg
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variables [hide private]
  wrapped
the wrapped log object.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, log)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • log - The rrlog.Log to wrap. Increases the traceOffset of log (+1).
Overrides: object.__init__

log(self, *args, **kwargs)

source code 

REMOVED: The log.log() is removed. Use log().

trace(self, message='', use_ex=False)

source code 

logs message plus a stacktrace (each stack line as a single log message.) Can use the current trace, of the trace of the last exception.

Parameters:
  • use_ex - If False, I use the current stacktrace. If True, I use the existing sys.exc_info().

dict(self, aDict, message='')

source code 

logs a dict, each item as a single log msg

Parameters:
  • message - Optional log message e.g. to identify the dict