Home | Trees | Index | Help |
---|
Package twisted :: Package python :: Module log |
|
Classes | |
---|---|
DefaultObserver |
Default observer. |
EscapeFromTheMeaninglessConfinesOfCapital |
|
FileLogObserver |
Log observer that writes to a file-like object. |
ILogContext |
Actually, this interface is just a synoym for the dictionary interface, but it serves as a key for the default information in a log. |
Logger |
This represents a class which may 'own' a log. |
LogPublisher |
Class for singleton log message publishing. |
NullFile |
|
StdioOnnaStick |
Class that pretends to be stout/err. |
Function Summary | |
---|---|
callWithContext(ctx,
func,
*args,
**kw)
| |
Utility method which wraps a function in a try:/except:, logs a failure if one occurrs, and uses the system's logPrefix. | |
clearIgnores()
| |
Write some data to the log, indented, so it's easier to distinguish from 'normal' output. | |
Write a failure to the log. | |
Throw away all logs. | |
Write a failure to the log. | |
Support function for testing frameworks. | |
ignoreErrors(*types)
| |
initThreads()
| |
showwarning(message,
category,
filename,
lineno,
file)
| |
Support function for testing frameworks. | |
Initialize logging to a specified file. | |
Write some data to the log. |
Variable Summary | |
---|---|
dict |
__warningregistry__
|
instance method |
addObserver
|
DefaultObserver |
defaultObserver
|
StdioOnnaStick |
logerr
|
StdioOnnaStick |
logfile
|
EscapeFromTheMeaninglessConfinesOfCapital |
logOwner
|
instance method |
msg
|
instance method |
removeObserver
|
LogPublisher |
theLogPublisher
|
list |
_ignoreErrors
|
int |
_keepErrors
|
list |
_keptErrors
|
NoneType |
_oldshowwarning
|
Function Details |
---|
callWithLogger(logger, func, *args, **kw)Utility method which wraps a function in a try:/except:, logs a failure if one occurrs, and uses the system's logPrefix. |
debug(*stuff, **otherstuff)Write some data to the log, indented, so it's easier to distinguish from 'normal' output. |
deferr(_stuff=None, **kw)Write a failure to the log. |
discardLogs()Throw away all logs. |
err(_stuff=None, **kw)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.) |
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 |
---|
__warningregistry__
|
addObserveraddObserver = twisted.python.log.LogPublisher.addObserver
|
defaultObserver
|
logerr
|
logfile
|
logOwner
|
msgmsg = twisted.python.log.LogPublisher.msg
|
removeObserverremoveObserver = twisted.python.log.LogPublisher.removeObserver
|
theLogPublisher
|
_ignoreErrors
|
_keepErrors
|
_keptErrors
|
_oldshowwarning
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Thu May 8 13:18:56 2003 | http://epydoc.sf.net |