LogLevel enum

Represents the log levels with associated ANSI color codes.

The LogLevel enum defines different log levels with specific ANSI color codes for better visibility in the terminal.

Available levels:

  • info - Orange color for informational messages
  • warning - Yellow color for warning messages
  • success - Green color for success messages
  • debug - Default color for debug messages
  • error - Red color for error messages
  • errorVerbose - Red color for verbose error messages
Inheritance
Available extensions

Values

info → const LogLevel

Informational log level with orange color

const LogLevel('\x1B[33m')
warning → const LogLevel

Warning log level with yellow color

const LogLevel('\x1B[33m')
success → const LogLevel

Success log level with green color

const LogLevel('\x1B[32m')
debug → const LogLevel

Debug log level with default terminal color

const LogLevel('\x1B[0m')
error → const LogLevel

Error log level with red color

const LogLevel('\x1B[31m')
errorVerbose → const LogLevel

Error log level with red color for verbose output

const LogLevel('\x1B[31m')

Properties

color String
The ANSI color code for this log level
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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.