SAFplus Runtime Director API  3.0.5
aspLog.SubLog Class Reference

Internal (use Hierarchial Log). More...

Public Member Functions

def __init__
 
def Log
 Output a message to the openclovis system log and to stderr (if uncommented) More...
 
def __str__
 

Public Attributes

 log
 
 indent
 

Detailed Description

Internal (use Hierarchial Log).

A logging system that allows logs to be organised in a hierarchial fashion.

Constructor & Destructor Documentation

def aspLog.SubLog.__init__ (   self,
  indent = 0 
)

Member Function Documentation

def aspLog.SubLog.__str__ (   self)
def aspLog.SubLog.Log (   self,
  s,
  loglvl = None,
  logunwind = 1 
)

Output a message to the openclovis system log and to stderr (if uncommented)

Parameters
sThe log message. Do not
terminate
loglvlOptional log level (on of asp.CL_LOG_SEV_xxx values). If not passed, the "info" level is used.
logunwindOptional stack location of the original log producer. Useful if you wrap this Log function (1 is you, 2 is your parent, etc)

Member Data Documentation

aspLog.SubLog.indent
aspLog.SubLog.log