Table of Contents

Module: log Twisted-0.19.0/twisted/python/log.py

twisted.log: Logfile and multi-threaded file support.

Imported modules   
import cStringIO
import failure
import os
import string
import sys
import threadable
import time
Functions   
_log_output
_no_log_output
_threaded_msg
clearIgnores
deferr
err
flushErrors
ignoreErrors
initThreads
msg
output
startKeepingErrors
startLogging
write
  _log_output 
_log_output (
        func,
        *args,
        *kw,
        )

  _no_log_output 
_no_log_output (
        func,
        *args,
        *kw,
        )

  _threaded_msg 
_threaded_msg ( stuff )

  clearIgnores 
clearIgnores ()

  deferr 
deferr ()

Write the default failure (the current exception) to the log.

  err 
err ( stuff )

Write a failure to the log.

  flushErrors 
flushErrors ( *errorTypes )

Support function for testing frameworks.

Return a list of errors that occurred since the last call to flushErrors(). (This will return None unless startKeepingErrors has been called.)

  ignoreErrors 
ignoreErrors ( *types )

  initThreads 
initThreads ()

  msg 
msg ( stuff )

Write some data to the log (a linebreak will be appended).

  output 
output (
        func,
        *args,
        *kw,
        )

  startKeepingErrors 
startKeepingErrors ()

Support function for testing frameworks.

Start keeping errors in a buffer which can be retrieved (and emptied) with flushErrors.

  startLogging 
startLogging ( file )

Initialize logging to a specified file.

  write 
write ( stuff )

Write some data to the log.

Classes   
Log

This will create a Log file (intended to be written to with

LogOwner

Allow object to register themselves as owners of the log.

Logger

This represents a class which may own a log. Used by subclassing.

Output

This represents a class which traps output.

ThreadedLogOwner

Allow object to register themselves as owners of the log, per thread.


Table of Contents

This document was automatically generated on Sun Jul 14 19:53:11 2002 by HappyDoc version 2.0