LogLevel Enumeration Reference
public enum LogLevel : Int, Comparable, CaseIterable, CustomStringConvertible
The various levels of severity that can be attached to a single log.
The higher the rawValue of the log level, the more important it is to be logged.
The log level can be used by a TealiumLogHandler to log differently the data it receives
(e.g.: Red color for error, or more data for trace vs debug)
but it will always be used by a logger to compare it with the LogLevel.Minimum
minimum log level and only send logs with higher severity than the configured minimum.
-
The most verbose log level, used for detailed debugging information.
Declaration
Swift
case trace = 0 -
Debug-level messages for development and troubleshooting.
Declaration
Swift
case debug = 100 -
Informational messages about normal operation.
Declaration
Swift
case info = 200 -
Warning messages about potential issues.
Declaration
Swift
case warn = 300 -
Error messages about failures and problems.
Declaration
Swift
case error = 400 -
Compares a log level against a minimum threshold.
Declaration
Swift
public static func >= (lhs: LogLevel, rhs: Minimum) -> BoolParameter Description lhsThe log level to compare.
rhsThe minimum threshold level.
Return Value
True if the log level meets or exceeds the minimum threshold.
-
Declaration
Swift
public static func < (lhs: LogLevel, rhs: LogLevel) -> Bool -
Declaration
Swift
public var description: String { get }