StreamLogHandler
public struct StreamLogHandler : LogHandler
StreamLogHandler
is a simple implementation of LogHandler
for directing
Logger
output to either stderr
or stdout
via the factory methods.
-
Factory that makes a
StreamLogHandler
to directs its output tostdout
Declaration
Swift
public static func standardOutput(label: String) -> StreamLogHandler
-
Factory that makes a
StreamLogHandler
to directs its output tostderr
Declaration
Swift
public static func standardError(label: String) -> StreamLogHandler
-
Declaration
Swift
public var logLevel: Logger.Level
-
Declaration
Swift
public var metadata: Logger.Metadata { get set }
-
Declaration
Swift
public subscript(metadataKey metadataKey: String) -> Logger.Metadata.Value? { get set }
-
Declaration