Part of twisted.application.app View Source View In Hierarchy
Known subclasses: twisted.scripts._twistd_unix.UnixAppLogger
Method | __init__ | Undocumented |
Method | start | Initialize the logging system. |
Method | stop | Print twistd stop log message. |
Instance Variable | _logfilename | The name of the file to which to log, if other than the default. (type: str ) |
Instance Variable | _observerFactory | Callable object that will create a log observer, or None. |
Instance Variable | _observer | log observer added at start and removed at stop . (type: callable ) |
Method | _initialLog | Print twistd start log message. |
Method | _getLogObserver | Create a log observer to be added to the logging system before running this application. |
If a customer logger was specified on the command line it will be used.
If not, and 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 for built-in loggers (e.g.
--logfile
).
Parameters | application | The application on which to check for an ILogObserver . |