Level
public enum Level : Int
The log level.
Raw values of log levels correspond to their severity, and are ordered by lowest numeric value (0) being the most severe. The raw values match the syslog values.
-
Appropriate for messages that contain information normally of use only when debugging a program.
Declaration
Swift
case debug = 7 -
Appropriate for informational messages.
Declaration
Swift
case info = 6 -
Appropriate for conditions that are not error conditions, but that may require special handling.
Declaration
Swift
case notice = 5 -
Appropriate for messages that are not error conditions, but more severe than
.notice.Declaration
Swift
case warning = 4 -
Appropriate for error conditions.
Declaration
Swift
case error = 3 -
Appropriate for criticial error conditions that usually require immediate attention.
Declaration
Swift
case critical = 2 -
Appropriate for conditions that should be corrected immediately, such as a corrupted system database.
Declaration
Swift
case alert = 1 -
Appropriate for panic conditions.
Declaration
Swift
case emergency = 0
View on GitHub
Level Enumeration Reference