StrategicLogger class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Indicates whether the logger has been initialized.
no setter
- level → LogLevel
-
Current log level of the logger.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
error(
dynamic error, {StackTrace? stackTrace, LogEvent? event}) → Future< void> - Logs an error using the configured strategies.
-
fatal(
dynamic error, {StackTrace? stackTrace, LogEvent? event}) → Future< void> - Logs a fatal error using the configured strategies.
-
initialize(
{List< LogStrategy> ? strategies, LogLevel level = LogLevel.none}) → Future<void> - Configures the logger if it has not been initialized.
-
log(
dynamic message, {LogEvent? event}) → Future< void> - Logs a message or event using the configured strategies.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reconfigure(
{List< LogStrategy> ? strategies, LogLevel level = LogLevel.none}) → Future<void> - Reconfigures the logger even if it has been previously initialized.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited