LogLevel enum

Severity of a log message.

The level drives the log file prefix and the minimum verbosity at which the message reaches the terminal; the visual treatment is chosen by the helper that emits it.

Inheritance
Available extensions

Values

info → const LogLevel

Neutral progress information.

const LogLevel('INFO', LogVerbosity.normal)
warning → const LogLevel

Something worth attention that is not fatal.

const LogLevel('WARN', LogVerbosity.normal)
success → const LogLevel

A step completed successfully.

const LogLevel('OK', LogVerbosity.normal)
debug → const LogLevel

Diagnostic detail, shown only with --verbose.

const LogLevel('DEBUG', LogVerbosity.verbose)
error → const LogLevel

A failure. Survives --quiet; only --silent hides it.

const LogLevel('ERROR', LogVerbosity.quiet)
errorVerbose → const LogLevel

A failure detail that is only surfaced with --verbose.

const LogLevel('ERROR', LogVerbosity.verbose)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isError bool
Whether messages of this level belong on stderr instead of stdout.
no setter
label String
Fixed width label written to the log file.
final
minVerbosity LogVerbosity
Lowest verbosity at which this level is still printed.
final
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<LogLevel>
A constant List of the values in this enum, in order of their declaration.