enum Crylog::Severity

Overview

Logging levels as defined by RFC 5424.

Defined in:

logger.cr

Enum Members

Debug = 100

Detailed debugging information.

Info = 200

Interesting events.

Examples: User logs in, SQL logs.

Notice = 250

Uncommon events.

Warning = 300

Exceptional occurrences that are not errors.

Examples: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.

Error = 400

Runtime errors.

Critical = 500

Critical conditions.

Example: Application component unavailable, unexpected exception.

Alert = 550

Action must be taken immediately.

Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.

Emergency = 600

Urgent alert.

Instance Method Summary

Instance Method Detail

def alert? #

[View source]
def critical? #

[View source]
def debug? #

[View source]
def emergency? #

[View source]
def error? #

[View source]
def info? #

[View source]
def notice? #

[View source]
def warning? #

[View source]