LogLevel class Null safety

Inheritance

Constructors

LogLevel(String name, int value)
const

Properties

color String
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value int
Unique value for this level. Used to order levels, so filtering can exclude messages whose level is under certain value.
final, inherited

Methods

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

Operators

operator <(Level other) bool
inherited
operator <=(Level other) bool
inherited
operator ==(Object other) bool
The equality operator. [...]
inherited
operator >(Level other) bool
inherited
operator >=(Level other) bool
inherited

Constants

ALL → const LogLevel
Special key to turn on logging for all levels (value = 0).
LogLevel('ALL', 0)
COLORS → const Map<int, String>
{0 : "\x1B[1m\x1B[38;5;30m", 300 : "\x1B[1m\x1B[38;5;135m", 400 : "\x1B[1m\x1B[38;5;134m", 500 : "\x1B[1m\x1B[38;5;133m", 700 : "\x1B[1m\x1B[38;5;105m"…
CONFIG → const LogLevel
Key for static configuration messages (value = 700).
LogLevel('CONFIG', 700)
FINE → const LogLevel
Key for tracing information (value = 500).
LogLevel('FINE', 500)
FINER → const LogLevel
Key for fairly detailed tracing (value = 400).
LogLevel('FINER', 400)
FINEST → const LogLevel
Key for highly detailed tracing (value = 300).
LogLevel('FINEST', 300)
ICONS → const Map<int, String>
{0 : "🏳", 300 : "🏳", 400 : "🏳", 500 : "🏳", 700 : "🏳", 800 : " ❕", 900 : " ⚠", 1000 : " ⛔", 1200 : " ☢", 2…
INFO → const LogLevel
Key for informational messages (value = 800).
LogLevel('INFO', 800)
LEVELS → const List<LogLevel>
[ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE, SHOUT, OFF]
OFF → const LogLevel
Special key to turn off all logging (value = 2000).
LogLevel('OFF', 2000)
SEVERE → const LogLevel
Key for serious failures (value = 1000).
LogLevel('SEVERE', 1000)
SHOUT → const LogLevel
Key for extra debugging loudness (value = 1200).
LogLevel('SHOUT', 1200)
WARNING → const LogLevel
Key for potential problems (value = 900).
LogLevel('WARNING', 900)