Home | Trees | Index | Help |
---|
Package twisted :: Package python :: Module log |
|
Classes | |
---|---|
Log |
This will create a Log file (intended to be written to with 'print', but usable from anywhere that a file is) from a file. |
Logger |
This represents a class which may 'own' a log. |
LogOwner |
Allow object to register themselves as owners of the log. |
NullFile |
|
Output |
This represents a class which traps output. |
ThreadedLogOwner |
Allow object to register themselves as owners of the log, per thread. |
Function Summary | |
---|---|
Initialize logging to a specified file. | |
msg(*stuff)
| |
Write some data to the log. | |
clearIgnores()
| |
Write some data to the log, indented, so it's easier to distinguish from 'normal' output. | |
Write the default failure (the current exception) to the log. | |
Throw away all logs. | |
Write a failure to the log. | |
Support function for testing frameworks. | |
ignoreErrors(*types)
| |
indent(s)
| |
initThreads()
| |
output(func,
*args,
**kw)
| |
Write some data to the log (a linebreak will be appended). | |
showwarning(message,
category,
filename,
lineno,
file)
| |
Support function for testing frameworks. | |
_log_output(func,
*args,
**kw)
| |
_no_log_output(func,
*args,
**kw)
| |
_threaded_msg(*stuff)
|
Variable Summary | |
---|---|
ThreadedLogOwner |
logOwner
|
list |
file_protocol
|
file |
logerr
|
NullFile |
logfile
|
lock |
loglock
|
list |
_ignoreErrors
|
int |
_keepErrors
|
list |
_keptErrors
|
Function Details |
---|
debug(*stuff)Write some data to the log, indented, so it's easier to distinguish from 'normal' output. |
deferr()Write the default failure (the current exception) to the log. |
discardLogs()Throw away all logs. |
err(stuff)Write a failure to the log. |
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.) |
real_msg(*stuff)Write some data to the log (a linebreak will be appended). |
startKeepingErrors()Support function for testing frameworks. Start keeping errors in a buffer which can be retrieved (and emptied) with flushErrors. |
startLogging(file, setStdout=1)Initialize logging to a specified file. |
write(stuff)Write some data to the log. |
Variable Details |
---|
file_protocol
|
logerr
|
logfile
|
loglock
|
logOwner
|
_ignoreErrors
|
_keepErrors
|
_keptErrors
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Sat Feb 15 21:19:16 2003 | http://epydoc.sf.net |