NullLogger class
Minimalistic logger that does nothing.
- Implemented types
- Available extensions
Constructors
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
-
logCritical(
String? message, {EventId? eventId, Object? error, List< Object> ? args}) → void -
Available on Logger, provided by the LoggerExtensions extension
Formats and writes a critical log message. -
logDebug(
String? message, {EventId? eventId, Object? error, List< Object> ? args}) → void -
Available on Logger, provided by the LoggerExtensions extension
Formats and writes a debug log message. -
logError(
String? message, {EventId? eventId, Object? error}) → void -
Available on Logger, provided by the LoggerExtensions extension
Formats and writes an error log message. -
logInformation(
String? message, {EventId? eventId, Object? error}) → void -
Available on Logger, provided by the LoggerExtensions extension
Formats and writes an informational log message. -
logTrace(
String? message, {EventId? eventId, Object? error}) → void -
Available on Logger, provided by the LoggerExtensions extension
Formats and writes a trace log message. -
logWarning(
String? message, {EventId? eventId, Object? error}) → void -
Available on Logger, provided by the LoggerExtensions extension
Formats and writes a warning log message. -
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