LogWriter
public protocol LogWriter
A protocol that can write log messages
-
Writes a log message
Declaration
Swift
func write(level: LogLevel, message: () -> String, parameters: LogParameters)Parameters
levelThe level that this message would be logged at
messageThe message to write to the log
parametersAssociated information about the log message (file, line, etc)
-
Controls the log level for this specific LogWriter instance
Declaration
Swift
var level: LogLevel { get set }
LogWriter Protocol Reference