LogWriter
public protocol LogWriter
Protocol used by Logger class for logging operations.
-
Sets and gets the current logger verbosity level.
Declaration
Swift
var loggerLevel: LoggerLevel
-
Return true if the log level will output trace level messages.
Declaration
Swift
func isTraceEnabled() -> Bool
-
log a trace message.
Declaration
Swift
func trace(_ log: String)
-
Return true if the log level will output debug level messages.
Declaration
Swift
func isDebugEnabled() -> Bool
-
log a debug message.
Declaration
Swift
func debug(_ log: String)
-
Return true if the log level will output info level messages.
Declaration
Swift
func isInfoEnabled() -> Bool
-
log a info message.
Declaration
Swift
func info(_ log: String)
-
Return true if the log level will output warning level messages.
Declaration
Swift
func isWarnEnabled() -> Bool
-
log a warning message.
Declaration
Swift
func warn(_ log: String)
-
Return true if the log level will output error level messages.
Declaration
Swift
func isErrorEnabled() -> Bool
-
log a error message.
Declaration
Swift
func error(_ log: String)
-
Return true if the log level will output fatal level messages.
Declaration
Swift
func isFatalEnabled() -> Bool
-
log a fatal message.
Declaration
Swift
func fatal(_ log: String)
-
Return true if logging is disabled and nothing will be logged.
Declaration
Swift
func isLoggingOff() -> Bool