Levels to control logging output. Logging can be enabled to include all levels above certain Level. Levels are ordered using an integer value Level.value. The predefined Level constants below are sorted as follows (in descending order): Level.SHOUT, Level.SEVERE, Level.WARNING, Level.INFO, Level.CONFIG, Level.FINE, Level.FINER, Level.FINEST, and Level.ALL.

We recommend using one of the predefined logging levels. If you define your own level, make sure you use a value between those used in Level.ALL and Level.OFF.

Implements

Constants

ALL Level

Special key to turn on logging for all levels (value = 0).

const Level('ALL', 0)
CONFIG Level

Key for static configuration messages (value = 700).

const Level('CONFIG', 700)
FINE Level

Key for tracing information (value = 500).

const Level('FINE', 500)
FINER Level

Key for fairly detailed tracing (value = 400).

const Level('FINER', 400)
FINEST Level

Key for highly detailed tracing (value = 300).

const Level('FINEST', 300)
INFO Level

Key for informational messages (value = 800).

const Level('INFO', 800)
LEVELS → List<Level>

const [ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE, SHOUT, OFF]
OFF Level

Special key to turn off all logging (value = 2000).

const Level('OFF', 2000)
SEVERE Level

Key for serious failures (value = 1000).

const Level('SEVERE', 1000)
SHOUT Level

Key for extra debugging loudness (value = 1200).

const Level('SHOUT', 1200)
WARNING Level

Key for potential problems (value = 900).

const Level('WARNING', 900)

Constructors

Level(String name, int value)

const

Properties

hashCode → int

read-only
name → String

final
value → int

Unique value for this level. Used to order levels, so filtering can exclude messages whose level is under certain value.

final
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator <(Level other) → bool

operator <=(Level other) → bool

operator ==(other) → bool

The equality operator.

operator >(Level other) → bool

operator >=(Level other) → bool

Methods

compareTo(Level other) → int

Compares this object to another Comparable

toString() → String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited