Level

The log level.

Logging.swift:847LoggerLevel.md
enum Level

Log levels are ordered by their severity, with .trace being the least severe and .critical being the most severe.

Log levels

  • case trace

    Appropriate for messages that contain information normally of use only when tracing the execution of a program.

  • case debug

    Appropriate for messages that contain information normally of use only when debugging a program.

  • case info

    Appropriate for informational messages.

  • case notice

    Appropriate for conditions that are not error conditions, but that may require special handling.

  • case warning

    Appropriate for messages that are not error conditions, but more severe than .notice.

  • case error

    Appropriate for error conditions.

  • case critical

    Appropriate for critical error conditions that usually require immediate attention.