LogLevel

public enum LogLevel : Int, Codable

Predefined logging levels ordered by a numeric value.

  • Fine-grained statements concerning program state, Typically only interesting for developers and used for debugging.

    Declaration

    Swift

    case debug = 10
  • Informational statements concerning program state, representing program events or behavior tracking. Typically interesting for support staff trying to figure out the context of a given error.

    Declaration

    Swift

    case info = 20
  • Statements that describe potentially harmful events or states in the program. Typically interesting for support staff trying to figure out potential causes of a given error.

    Declaration

    Swift

    case warning = 30
  • Statements that describe non-fatal errors in the application; this level is used quite often for logging handled exceptions.

    Declaration

    Swift

    case error = 40
  • Statements representing the most severe of error conditions, assumedly resulting in program termination. Typically used by unhandled exception handlers before terminating a program.

    Declaration

    Swift

    case fatal = 50