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
StandardOutputLogRecorderinstance to use the specifiedLogFormatters for formatting log messages.Declaration
Swift
public init(formatters: [LogFormatter], queue: DispatchQueue? = nil)Parameters
formattersAn array of
LogFormatters to use for formatting log entries that will be recorded by the receiver.queueThe
DispatchQueueto use for the recorder. Ifnil, a new queue will be created.
View on GitHub
StandardOutputLogRecorder Class Reference