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");
Values
Properties
- 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