LoggerLevel
public enum LoggerLevel: Int, CustomStringConvertible
Logging verbosity levels
-
No logging will be output
Declaration
Swift
case off = 0
-
Output Fatal level log messages only
Declaration
Swift
case fatal = 1
-
Error level
Declaration
Swift
case error = 2
-
Warn level
Declaration
Swift
case warn = 3
-
Info level
Declaration
Swift
case info = 4
-
Debug level
Declaration
Swift
case debug = 5
-
Trace level - most verbose. All messages are output.
Declaration
Swift
case trace = 6
-
Returns an array of all LoggerLevels
Declaration
Swift
public static var levels: [LoggerLevel]
-
Creates a new instance with the specified named LoggerLevel value. If there is no value of the type that corresponds with the specified named value, this initializer returns nil. For example:
print(LoggerLevel(levelName: "info")) // Prints "Optional("LoggerLevel.info")" print(LoggerLevel(levelName: "flexo")) // Prints "nil"
Declaration
Swift
public init?(levelName: String)
Parameters
levelName
Case insensitive string name of the logging level.
-
String name of currently set level
Declaration
Swift
public var description: String