LogLevel

public enum LogLevel : UInt, Comparable, CustomStringConvertible

The LogLevel enum defines a set of standard logging levels that can be used to control logging output. The logging Levels are ordered. Enabling logging at a given level also enables logging at all higher levels. Clients must use the predefined constants such as LogLevel.debug. Error is the highest and debug is the lowest level.

  • off

    off is a special level that can be used to turn off logging

    Declaration

    Swift

    case off = 600
  • error is a message level indicating a serious failure

    Declaration

    Swift

    case error = 500
  • warn is a message level indicating a potential problem

    Declaration

    Swift

    case warn = 400
  • info is a message level for informational messages

    Declaration

    Swift

    case info = 300
  • debug is a message level providing tracing information

    Declaration

    Swift

    case debug = 200
  • This returns an String describing the selected enum case.

    Declaration

    Swift

    public var description: String { get }