ConsoleLogger class

A logger that writes messages in the debug output window only when a debugger is attached.

Implemented types
Available Extensions

Constructors

ConsoleLogger(String name)
Initializes a new instance of the ConsoleLogger class.

Properties

hashCode int
The hash code for this object.
no setterinherited
loggerName String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

beginScope<TState>(TState state) Disposable
Begins a logical operation scope.
override
isEnabled(LogLevel logLevel) bool
Checks if the given logLevel is enabled.
override
log<TState>({required LogLevel logLevel, required EventId eventId, required TState state, Object? error, required LogFormatter<TState> formatter}) → void
Writes a log entry.
override
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