Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`scripts`.`_twistd_unix`.`UnixAppLogger``

class documentation

`class UnixAppLogger(app.AppLogger): (source)`

View In Hierarchy

A logger able to log to syslog, to files, and to stdout.

Method | `__init__` | Initialize an `AppLogger` with a `ServerOptions`.
Method | `_getLogObserver` | Create and return a suitable log observer for the given configuration.
Instance Variable | `_nodaemon` | A flag indicating the process will not be daemonizing.
Instance Variable | `_syslog` | A flag indicating whether to use syslog instead of file logging.
Instance Variable | `_syslogPrefix` | If `sysLog` is `True`, the string prefix to use for syslog messages.

Inherited from `AppLogger`:

Method | `start` | Initialize the global logging system for the given application.
Method | `stop` | Remove all log observers previously set up by `AppLogger.start`.
Method | `_initialLog` | Print twistd start log message.
Instance Variable | `_logfilename` | The name of the file to which to log, if other than the default.
Instance Variable | `_observer` | log observer added at `start` and removed at `stop`.
Instance Variable | `_observerFactory` | Callable object that will create a log observer, or None.

def __init__(self, options): (source)
overrides `twisted.application.app.AppLogger.__init__`

Initialize an `AppLogger` with a `ServerOptions`.

def _getLogObserver(self): (source)
overrides `twisted.application.app.AppLogger._getLogObserver`

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.

Returns
An object suitable to be passed to `log.addObserver`.

_nodaemon: `bool` = (source)

A flag indicating the process will not be daemonizing.

_syslog: `bool` = (source)

A flag indicating whether to use syslog instead of file logging.

_syslogPrefix: `str` = (source)

If `sysLog` is `True`, the string prefix to use for syslog messages.