LogLevel
public enum LogLevel : Int, Comparable
Defines the various log levels supported by the SDK, ordered by verbosity.
Conforms to Comparable
so levels can be compared to determine if a message
should be logged given the current logging threshold.
-
Verbose = most detailed logs, Debug = developer-focused info, Info = general info, Warning = non-fatal issues, Error = serious problems, None = disables logging.
Declaration
Swift
case verbose = 0
-
Undocumented
Declaration
Swift
case debug = 1
-
Undocumented
Declaration
Swift
case info = 2
-
Undocumented
Declaration
Swift
case warning = 3
-
Undocumented
Declaration
Swift
case error = 4
-
Undocumented
Declaration
Swift
case none = 5
-
Compares two log levels by their raw value to determine ordering.
Declaration
Swift
public static func < (lhs: LogLevel, rhs: LogLevel) -> Bool
Parameters
lhs
The left-hand side log level.
rhs
The right-hand side log level.
Return Value
true
iflhs
is less verbose thanrhs
.