SpringLogLevel enum

How important a log message is, from trace (most detail) to error; off silences a logger.

Every message is logged at a level, and every logger shows messages from a minimum level up, so the same code can be quiet in production and chatty while debugging. Applications usually set levels in configuration (logging.level.neon.checkout=debug) and use the level methods of SpringLog (log.debug(...)); they name a level directly to set one in code or in a log handler.

// While chasing a bug: show debug output of the checkout code.
SpringLog.setLevel('neon.checkout', SpringLogLevel.debug);

Spring (Java): org.apache.commons.logging.Log levels (trace, debug, info, warn, error).

Inheritance
Available extensions

Values

trace → const SpringLogLevel

Very detailed diagnostics, such as every step of a loop.

debug → const SpringLogLevel

Diagnostics useful while developing, such as which auto-configuration conditions matched.

info → const SpringLogLevel

Normal operation worth seeing: started, listening on a port.

warning → const SpringLogLevel

Something went wrong but the program carried on, such as a destroy callback that threw during shutdown. Shown by default.

error → const SpringLogLevel

A failure that could not be handled, such as a failed start or a request that ended in an error. Shown by default.

off → const SpringLogLevel

Not a message level: as a logger's level it turns that logger's output off.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<SpringLogLevel>
A constant List of the values in this enum, in order of their declaration.