t.a.a.AppLogger(object) : class documentation

Part of twisted.application.app View Source View In Hierarchy

Known subclasses: twisted.scripts._twistd_unix.UnixAppLogger

Class managing logging faciliy of the application.
Instance Variables_logfilenameThe name of the file to which to log, if other than the default. (type: str )
_observerlog observer added at start and removed at stop. (type: callable )
Method __init__ Undocumented
Method start Initialize the logging system.
Method stop Print twistd stop log message.
Method _initialLog Print twistd start log message.
Method _getLogObserver Create a log observer to be added to the logging system before running this application.
def __init__(self, options): (source)
Undocumented
def start(self, application): (source)

Initialize the logging system.

If an ILogObserver component has been set on application, then it will be used as the log observer. Otherwise a log observer will be created based on the command-line options.
ParametersapplicationThe application on which to check for an ILogObserver.
def _initialLog(self): (source)
Print twistd start log message.
def _getLogObserver(self): (source)
Create a log observer to be added to the logging system before running this application.
def stop(self): (source)
Print twistd stop log message.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:27:37.