open class OutputStreamLogRecorder: LogRecorderBase
OutputStreamLogRecorder logs messages by writing to the standard
output stream of the running process.
public init(stream: UnsafeMutablePointer<FILE>, formatters: [LogFormatter], queue: DispatchQueue? = nil)
A standard C file handle to use as the output stream.
An array of
LogFormatters to use for formatting log entries that will be recorded by the receiver.
DispatchQueueto use for the recorder. If
nil, a new queue will be created.
Called to record the specified message to standard output.
This function is only called if one of the
formattersassociated with the receiver returned a non-
nilstring for the given
open override func record(message: String, for entry: LogEntry, currentQueue: DispatchQueue, synchronousMode: Bool)
The message to record.
The GCD queue on which the function is being executed.
true, the recording is being done in synchronous mode, and the recorder should act accordingly.