Logger class abstract
Represents a type used to perform logging.
Aggregates most logging patterns to a single method.
- Implementers
- Available extensions
Constructors
- Logger()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
beginScope<
TState> (TState state) → Disposable - Begins a logical operation scope.
-
isEnabled(
LogLevel logLevel) → bool -
Checks if the given
logLevel
is enabled. -
log<
TState> ({required LogLevel logLevel, required EventId eventId, required TState state, Object? error, required LogFormatter< TState> formatter}) → void - Writes a log entry.
-
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