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
|
_log_output (
func,
*args,
*kw,
)
|
|
_no_log_output
|
_no_log_output (
func,
*args,
*kw,
)
|
|
_threaded_msg
|
_threaded_msg ( stuff )
|
|
deferr
|
deferr ()
Write the default failure (the current exception) to the log.
|
|
err
|
err ( stuff )
Write a failure to the log.
|
|
initThreads
|
initThreads ()
|
|
msg
|
msg ( stuff )
Write some data to the log (a linebreak will be appended).
|
|
output
|
output (
func,
*args,
*kw,
)
|
|
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.
|
|