Handler
public struct Handler : LogHandler
Logging Format and Pipe’s Logging Backend
-
Default init
Parameters
formatterFormatter to format with
pipePIpe to pipe to
-
Formatter we’re formatting with
Declaration
Swift
public let formatter: Formatter -
PIpe we’re piping to
Declaration
Swift
public let pipe: Pipe -
Log level specification, used by Logger to filter all log levels less severe then the specified
Declaration
Swift
public var logLevel: Logger.Level -
Our main Logging Backend method
Declaration
Swift
public func log(level: Logger.Level, message: Logger.Message, metadata: Logger.Metadata?, file: String, function: String, line: UInt) -
Our Logging Backend metadata
Declaration
Swift
public var metadata: Logger.Metadata { get set } -
Add, remove, or change the logging metadata.
Declaration
Swift
public subscript(metadataKey metadataKey: String) -> Logger.Metadata.Value? { get set }Parameters
metadataKeyThe key for the metadata item
View on GitHub
Handler Structure Reference