Level class

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.

Implemented types

Constructors

Level(String name, int value)
const

Properties

hashCode int
The hash code for this object.
no setteroverride
name String
The name of the level
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
Unique value for this level.
final

Methods

compareTo(Level other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator <(Level other) bool
operator <=(Level other) bool
operator ==(Object other) bool
The equality operator.
override
operator >(Level other) bool
operator >=(Level other) bool

Static Methods

fromString(String? s) Level?
Converts the given String s to the log level.

Constants

ALL → const Level
Special key to turn on logging for all levels (value = 0).
DEBUG → const Level
Special key to turn on logging for trace levels (value = 200).
ERROR → const Level
Key for serious failures (value = 500).
FATAL → const Level
Key for fatal failures (value = 600).
INFO → const Level
Key for informational messages (value = 300).
LEVELS → const List<Level>
OFF → const Level
Special key to turn off all logging (value = 700).
TRACE → const Level
Special key to turn on logging for trace levels (value = 100).
WARNING → const Level
Key for potential problems (value = 400).