LogHandler
public protocol LogHandler : AnyObject
LogHandler protocol accepts a logging request and exports the desired messages to a target, for example, a file, the console, etc. It can be disabled by setting its logging level to .off.
-
The log level of this handler.
Declaration
Swift
var logLevel: LogLevel { get set }
-
Publishes a string on the handler.
Declaration
Swift
func publish(_ record: LogRecord)Parameters
messagethe message to publish.