LogLevel enum

Defines the severity levels for logging throughout the application.

Each level corresponds to a specific kind of information to be logged, allowing for filtering and handling of log output based on the importance and nature of the information.

Levels:

  • none: No logging level specified. Generally used to disable logging.
  • debug: Detailed information on the flow through the system. Used for debugging.
  • info: Interesting runtime events (e.g., startup or shutdown). Use this level for general operational entries that highlight progress or state within the application.
  • warning: Potential issues that are not necessarily errors or critical failures, but may warrant investigation.
  • error: Error events that might still allow the application to continue running.
  • fatal: Very severe error events that might cause the application to terminate.

Provides a method to convert string representations of log levels to their corresponding enum values.

Example:

var logLevel = LogLevel.converter("error");
Inheritance
Available extensions

Values

none → const LogLevel
debug → const LogLevel
info → const LogLevel
warning → const LogLevel
error → const LogLevel
fatal → const LogLevel

Properties

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

Static Methods

converter(String name) LogLevel
Converts a string name to its corresponding LogLevel enum value.

Constants

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