twisted.logger.LogBeginner.beginLoggingTo(self, observers, discardBuffer=False, redirectStandardIO=True)
method documentationtwisted.logger.__init__.LogBeginner
View Source
Begin logging to the given set of observers. This will:
observers
to the LogPublisher
associated with this LogBeginner
.
discardBuffer
is not set.
LogPublisher
as strings to the errorStream
associated with this LogBeginner
,
and allow them to be logged normally.
warnings
module associated with this LogBeginner
to
log messages.
Parameters | observers | The observers to register. (type: iterable of ILogObserver s) |
discardBuffer | Whether to discard the buffer and not re-play it to the added observers.
(This argument is provided mainly for compatibility with legacy concerns.) (type: bool ) | |
redirectStandardIO | If true, redirect standard output and standard error to the observers. (type: bool ) | |
Note | Since a LogBeginner is
designed to encapsulate the transition between process-startup and
log-system-configuration, this method is intended to be invoked
once. |