LogStep enum
Defines individual components (steps) that can be included in log output.
Used by log printers to control the composition of each log message. Enables granular formatting such as showing only time, message, or level.
Values
- TIMESTAMP → const LogStep
-
Timestamp of the log, including date and time.
- DATE → const LogStep
-
Only the date portion of the timestamp (useful when omitting time).
- LEVEL → const LogStep
-
Log level indicator (e.g., INFO, ERROR), optionally with emoji.
- TAG → const LogStep
-
Optional user-defined tag or logger name to identify the log source.
- THREAD → const LogStep
-
Indicates the thread or isolate where the log originated.
- LOCATION → const LogStep
-
Represents the code location where the log was triggered (if available).
- MESSAGE → const LogStep
-
The main log message or content.
- ERROR → const LogStep
-
Any error object attached to the log event.
- STACKTRACE → const LogStep
-
A stack trace, usually included when an error is present.
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
Static Properties
-
defaultSteps
→ List<
LogStep> -
Default ordering and selection of log steps used by printers unless overridden.
no setter