NullLogger class

Minimalistic logger that does nothing.

Implemented types
Available Extensions

Constructors

NullLogger()

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.
override
isEnabled(LogLevel logLevel) bool
Checks if the given logLevel is enabled.
override
log<TState>({required LogLevel logLevel, EventId? eventId, TState? state, Object? error, 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

Static Properties

instance NullLogger
Returns the shared instance of NullLogger.
no setter