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 specified LogFormatters for formatting log messages.

    Declaration

    Swift

    public init(formatters: [LogFormatter], queue: DispatchQueue? = nil)

    Parameters

    formatters

    An array of LogFormatters to use for formatting log entries that will be recorded by the receiver.

    queue

    The DispatchQueue to use for the recorder. If nil, a new queue will be created.