DebugLogger class
A logger that writes messages in the debug output window only when a debugger is attached.
- Implemented types
- Available extensions
Constructors
- DebugLogger.new(String name)
- Initializes a new instance of the DebugLogger class.
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, required EventId eventId, required TState state, Object? error, required 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