MultiplexLogHandler
public struct MultiplexLogHandler : LogHandler
A pseudo-LogHandler that can be used to send messages to multiple other LogHandlers.
The first LogHandler passed to the initialisation function of MultiplexLogHandler control the logLevel as
well as the metadata for this LogHandler. Any subsequent LogHandlers used to initialise a
MultiplexLogHandler are merely to emit the log message to another place.
-
Undocumented
Declaration
Swift
public init(_ handlers: [LogHandler]) -
Declaration
Swift
public var logLevel: Logger.Level { get set } -
Declaration
-
Declaration
Swift
public var metadata: Logger.Metadata { get set } -
Declaration
Swift
public subscript(metadataKey metadataKey: String) -> Logger.Metadata.Value? { get set }
View on GitHub
MultiplexLogHandler Structure Reference