Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
Archetypes.debug.NullLog Class Reference
Inheritance diagram for Archetypes.debug.NullLog:
Inheritance graph
[legend]
Collaboration diagram for Archetypes.debug.NullLog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def log
def munge_message
def log
def log_exc
def __call__

Public Attributes

 closeable
 target

Static Public Attributes

int closeable = 0
 fp = None

Detailed Description

Definition at line 78 of file debug.py.


Constructor & Destructor Documentation

def Archetypes.debug.NullLog.__init__ (   self,
  target 
)

Reimplemented from Archetypes.debug.Log.

Definition at line 79 of file debug.py.

00079 
00080     def __init__(self, target):
        pass

Here is the caller graph for this function:


Member Function Documentation

def Archetypes.debug.Log.__call__ (   self,
  msg 
) [inherited]

Definition at line 74 of file debug.py.

00074 
00075     def __call__(self, msg):
00076         self.log(msg)
00077 

Here is the call graph for this function:

Here is the caller graph for this function:

def Archetypes.debug.Log.log (   self,
  msg,
  args,
  kwargs 
) [inherited]

Reimplemented in Archetypes.debug.ZLogger.

Definition at line 62 of file debug.py.

00062 
00063     def log(self, msg, *args, **kwargs):
00064         self._open()
00065         self.fp.write("%s\n" % (self.munge_message(msg, **kwargs)))
00066         for arg in args:
00067             self.fp.write("%s\n" % pprint.pformat(arg))
00068         self._close()

Here is the call graph for this function:

Here is the caller graph for this function:

def Archetypes.debug.NullLog.log (   self,
  msg,
  kwargs 
)

Definition at line 81 of file debug.py.

00081 
00082     def log(self, msg, **kwargs): pass

Here is the caller graph for this function:

def Archetypes.debug.Log.log_exc (   self,
  msg = None,
  args,
  kwargs 
) [inherited]

Reimplemented in Archetypes.debug.ZLogger.

Definition at line 69 of file debug.py.

00069 
00070     def log_exc(self, msg=None, *args, **kwargs):
00071         self.log(''.join(traceback.format_exception(*sys.exc_info())), offset=1)
00072         if msg: self.log(msg, collapse=0, deep=0, *args, **kwargs)
00073 

Here is the call graph for this function:

def Archetypes.debug.Log.munge_message (   self,
  msg,
  kwargs 
) [inherited]
Override this to messge with the message for subclasses

Reimplemented in Archetypes.debug.ClassLog.

Definition at line 58 of file debug.py.

00058 
00059     def munge_message(self, msg, **kwargs):
00060         """Override this to messge with the message for subclasses"""
00061         return msg

Here is the caller graph for this function:


Member Data Documentation

int Archetypes.debug.Log.closeable = 0 [static, inherited]

Definition at line 34 of file debug.py.

Definition at line 47 of file debug.py.

Archetypes.debug.Log.fp = None [static, inherited]

Definition at line 35 of file debug.py.

Definition at line 38 of file debug.py.


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