LogLevel
public enum LogLevel : Int, CaseIterable, Comparable
LogLevels represent the logging level defined by TraceLog. These parallel the environment variables that can be set to configure TraceLog.
-
Used to turn logging completely off for the selected level (global, prefix, tag).
Declaration
Swift
case off = 0
-
Represents the lowest level of logging and is used to log errors that happen in the system.
Declaration
Swift
case error = 1
-
Represents a warning in the system.
Declaration
Swift
case warning = 2
-
An informational message for the user. Note, this is the most common level used.
Declaration
Swift
case info = 3
-
The first level of low level tracing and debug logging. Use this level for deeper information about the operation of a particular function.
Declaration
Swift
case trace1 = 4
-
The second level of low level tracing and debug logging.
Declaration
Swift
case trace2 = 5
-
The third level of low level tracing and debug logging.
Declaration
Swift
case trace3 = 6
-
The forth level of low level tracing and debug logging. Use this level to get complete logging information. This level includes all logging in the system.
Declaration
Swift
case trace4 = 7
-
Returns true if lhs LogLevel is less than to rhs LogLevel
Declaration
Swift
public static func < (lhs: LogLevel, rhs: LogLevel) -> Bool
-
Returns true if lhs LogLevel is equal to rhs LogLevel
Declaration
Swift
public static func == (lhs: LogLevel, rhs: LogLevel) -> Bool