OSLogConsoleHandler
open class OSLogConsoleHandler : ConsoleLogHandler
A ConsoleHandler using Apple’s OSLog to log to the console.
-
os_log’s formatting parameter. It must contain the %@ formatting parameter must be included and there must be on and ony one. The log message will be placed there. It can be however contain formatting parameters for example: ‘My Custom Type %{public}@’ @see os_log
Declaration
Swift
public var osLogMessageType: StaticString
-
Initializes a new OSLogConsoleHandler with a default formatter. The formatter is of type OSLogFormatter and applies a format that properly fits with the OSLog output from Apple.
Declaration
Swift
public override init(formatter: LogFormatter = OSLogConsoleFormatter())