LogLevel class
LogLevels to control logging output. Logging can be enabled to include all levels above certain LogLevel. LogLevels are ordered using an integer value LogLevel.value. The predefined LogLevel constants below are sorted as follows (in descending order): LogLevel.SHOUT, LogLevel.SEVERE, LogLevel.WARNING, LogLevel.INFO, LogLevel.CONFIG, LogLevel.FINE, LogLevel.FINER, LogLevel.FINEST, and LogLevel.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 LogLevel.ALL and LogLevel.OFF.
- Implemented types
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- name → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
Unique value for this level. Used to order levels, so filtering can
exclude messages whose level is under certain value.
final
Methods
-
compareTo(
LogLevel 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 <(
LogLevel other) → bool -
operator <=(
LogLevel other) → bool -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator >(
LogLevel other) → bool -
operator >=(
LogLevel other) → bool
Static Methods
-
fromString(
String? logLevelString, LogLevel orElseLogLevel) → LogLevel
Constants
- ALL → const LogLevel
- Special key to turn on logging for all levels (value = 0).
- CONFIG → const LogLevel
- Key for static configuration messages (value = 700).
- FINE → const LogLevel
- Key for tracing information (value = 500).
- FINER → const LogLevel
- Key for fairly detailed tracing (value = 400).
- FINEST → const LogLevel
- Key for highly detailed tracing (value = 300).
- INFO → const LogLevel
- Key for informational messages (value = 800).
-
LEVELS
→ const List<
LogLevel> - OFF → const LogLevel
- Special key to turn off all logging (value = 2000).
- SEVERE → const LogLevel
- Key for serious failures (value = 1000).
- SHOUT → const LogLevel
- Key for extra debugging loudness (value = 1200).
- WARNING → const LogLevel
- Key for potential problems (value = 900).