Level class

The logger levels

See package:logging for more details on log levels

A class was used instead of an Enum as a class allows creation of new Levels

Constructors

Level(String name, int value)
Creates a new log level
const

Properties

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

Methods

call() int
Used to return the logs value when you invoke the level.
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 ==(Object other) bool
The equality operator.
inherited

Constants

ALL → const Level
Special key to turn on logging for all levels (value = 0).
DEBUG → const Level
Key for tracing information (value = 500).
ERROR → const Level
Key for serious failures (value = 1000).
INFO → const Level
Key for informational messages (value = 800).
OFF → const Level
Special key to turn off all logging (value = 2000).
WARNING → const Level
Key for potential problems (value = 900).