Level
public enum Level : CaseIterable
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 only when debugging a program.
Declaration
Swift
case trace -
Appropriate for messages that contain information normally of use only when debugging a program.
Declaration
Swift
case debug -
Appropriate for informational messages.
Declaration
Swift
case info -
Appropriate for conditions that are not error conditions, but that may require special handling.
Declaration
Swift
case notice -
Appropriate for messages that are not error conditions, but more severe than
.notice.Declaration
Swift
case warning -
Appropriate for error conditions.
Declaration
Swift
case error -
Appropriate for critical error conditions that usually require immediate attention.
When a
criticalmessage is logged, the logging backend (LogHandler) is free to perform more heavy-weight operations to capture system state (such as capturing stack traces) to facilitate debugging.Declaration
Swift
case critical
View on GitHub
Level Enumeration Reference