t.s._.UnixAppLogger(app.AppLogger) : class documentation

Part of twisted.scripts._twistd_unix View Source View In Hierarchy

A logger able to log to syslog, to files, and to stdout.
Instance Variables_syslogA flag indicating whether to use syslog instead of file logging. (type: bool )
_syslogPrefixIf sysLog is True, the string prefix to use for syslog messages. (type: str )
_nodaemonA flag indicating the process will not be daemonizing. (type: bool )
Method __init__ Undocumented
Method _getLogObserver Create and return a suitable log observer for the given configuration.

Inherited from AppLogger:

Method start Initialize the logging system.
Method stop Print twistd stop log message.
Method _initialLog Print twistd start log message.
def __init__(self, options): (source)
Undocumented
def _getLogObserver(self): (source)

Create and return a suitable log observer for the given configuration.

The observer will go to syslog using the prefix _syslogPrefix if _syslog is true. Otherwise, it will go to the file named _logfilename or, if _nodaemon is true and _logfilename is "-", to stdout.
ReturnsAn object suitable to be passed to log.addObserver.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:02:37.