Level

public enum Level

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 criticial error conditions that usually require immediate attention.

    When a critical message 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
  • Declaration

    Swift

    public static func < (lhs: Logger.Level, rhs: Logger.Level) -> Bool