StandardOutputLogRecorder
open class StandardOutputLogRecorder: OutputStreamLogRecorder
The StandardOutputLogRecorder
is an OutputStreamLogRecorder
that writes
log messages to the standard output stream (`stdout`
) of the running
process.
-
Initializes a
StandardOutputLogRecorder
instance to use the specifiedLogFormatter
s for formatting log messages.Declaration
Swift
public init(formatters: [LogFormatter], queue: DispatchQueue? = nil)
Parameters
formatters
An array of
LogFormatter
s to use for formatting log entries that will be recorded by the receiver.queue
The
DispatchQueue
to use for the recorder. Ifnil
, a new queue will be created.