Level
public enum Level : String, Codable, CaseIterable
extension Logger.Level: Comparable
The log level.
Log levels are ordered by their severity, with .trace being the least severe and
.critical being the most severe.
-
Appropriate for messages that contain information normally of use only when tracing the execution of 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
Install in Dash
Level Enumeration Reference