LogLevel

An enumeration containing the logging levels

Declaration

@objc public enum LogLevel : Int {
    case Verbose = 80
    case Debug = 70
    case ProtectedWarning = 60
    case ProtectedError = 50
    case Information = 40
    case Warning = 30
    case Error = 20
    case Critical = 10
    case None = 0

    public var description: String { get }
}

Only relevant details are shown, boilerplate or standard Swift generated code is omitted

Summary

Cases

Name

Description

Additional information that is useful to the framework developer.

Any information that is useful to the framework developer.

Same as warning but restricted to the developer consuming the framework.

Same as error but restricted to the developer consuming the framework.

Any information that is useful to the developer consuming the framework.

Any instruction that encountered unexpected circumstances, but was able to successfully recover and complete the instruction.

Any instruction that encountered unexpected circumstances, and was unable to successfully complete the instruction, but the application is able to continue normal execution.

Any instruction that encountered unexpected circumstances, and was unable to successfully complete the instruction, and the application is unable to continue normal execution.

No instructions will be logged.

Public variables

Name

Type

Description

String

Returns the description of the specified log level.

Cases

Verbose

case Verbose

This level is restricted to Sybrin developers only

Additional information that is useful to the framework developer.

Debug

case Debug

This level is restricted to Sybrin developers only

Any information that is useful to the framework developer.

ProtectedWarning

case ProtectedWarning

This level is restricted to Sybrin developers only

Same as warning but restricted to the developer consuming the framework.

ProtectedError

case ProtectedError

This level is restricted to Sybrin developers only

Same as error but restricted to the developer consuming the framework.

Information

case Information

Any information that is useful to the developer consuming the framework.

Warning

case Warning

Any instruction that encountered unexpected circumstances, but was able to successfully recover and complete the instruction.

Error

case Error

Any instruction that encountered unexpected circumstances, and was unable to successfully complete the instruction, but the application is able to continue normal execution.

Critical

case Critical

Any instruction that encountered unexpected circumstances, and was unable to successfully complete the instruction, and the application is unable to continue normal execution.

None

case None

No instructions will be logged.

Public variables

description

public var description: String { get }

Example: "No instructions will be logged"

Returns the description of the specified log level.

Where this is used

Last updated