TypedLogger<T> class abstract

A generic logger interface used to enable activation of a named logger from dependency injection.

The type parameter T specifies the type whose name is used as the logger category.

Implemented types
Implementers
Available extensions

Constructors

TypedLogger()

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