CustomLogSink
public struct CustomLogSink
A log sink that writes log messages to a custom log sink implementation.
-
The minimum log level to be logged.
Declaration
Swift
public let level: LogLevel
-
The set of log domains of the log messages to be logged.
Declaration
Swift
public let domains: LogDomains
-
The custom log sink implementation.
Declaration
Swift
public let logSink: LogSinkProtocol
-
Initializes a ConsoleLogSink with the specified log level and the custom log sink implementation. The default log domain is set to all domains.
Declaration
Swift
public init(level: LogLevel, logSink: LogSinkProtocol)
-
Initializes a ConsoleLogSink with the specified log level, log domains, and the custom log sink implementation.
Declaration
Swift
public init(level: LogLevel, domains: LogDomains, logSink: LogSinkProtocol)