Module spiroserver :: Class SpiroLogger
[show private | hide private]
[frames | no frames]

Class SpiroLogger


Provides normal and exception logging routines
Method Summary
  __init__(self, **kw)
Creates a Spiro logger
  log(self, level, msg, nPrev)
Logs a single message
  logException(self, level, msg)
Logs an annotated exception dump

Method Details

__init__(self, **kw)
(Constructor)

Creates a Spiro logger

Keywords:
  • logFile - file to log to (default sys.stdout)
  • logVerbosity - verbosity at which to log
  • logDelay - delay between logging messages - useful if logging to stdout and tracking infinite recursion bugs

log(self, level, msg, nPrev=0)

Logs a single message

logException(self, level, msg='')

Logs an annotated exception dump

Here, the 'msg' arg is stuff to be appended to the logged traceback

Generated by Epydoc 2.0 on Sun Apr 11 13:37:10 2004 http://epydoc.sf.net