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.
-
Create a
MultiplexLogHandler.Declaration
Swift
public init(_ handlers: [LogHandler])Parameters
handlersAn array of
LogHandlers, each of which will receive the log messages sent to thisLogger. The array must not be empty. -
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
Install in Dash
MultiplexLogHandler Structure Reference