LoggerBase mixin base
Base mixin for implementing Logger.
Provides default implementations for common methods across loggers.
- Implemented types
- Available extensions
Properties
- filter ← Filter?
-
Sets this logger's filter.
no getterinherited
- handler ← Handler?
-
Sets this logger's handler.
no getterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- level ↔ Level
-
Gets the minimum severity level of Records this logger handles.
getter/setter pairinherited
- name → String?
-
Name of this logger.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
debug(
String message, [Iterable< Field> ? fields]) → void -
Available on Interface, provided by the DefaultLog extension
Emits a record withmessage
and Level.debug severity level. -
error(
String message, [Iterable< Field> ? fields]) → void -
Available on Interface, provided by the DefaultLog extension
Emits a record withmessage
and Level.error severity level. -
fatal(
String message, [Iterable< Field> ? fields]) → void -
Available on Interface, provided by the DefaultLog extension
Emits a record withmessage
and Level.fatal severity level. -
info(
String message, [Iterable< Field> ? fields]) → void -
Available on Interface, provided by the DefaultLog extension
Emits a record withmessage
and Level.info severity level. -
isEnabledFor(
Level level) → bool -
Checks if a record with the given severity
level
will be emitted by this logger.override -
log(
Level level, String message, [Iterable< Field> ? fields]) → void -
Emits a record with
message
andlevel
severity level.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startTimer(
String message, {Level level = Level.info}) → Timer -
Starts tracing and emits a record with
message
andlevel
severity level; to stop tracing call Timer.stop on the returned timer.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
warn(
String message, [Iterable< Field> ? fields]) → void -
Available on Interface, provided by the DefaultLog extension
Emits a record withmessage
and Level.warn severity level. -
withFields(
Iterable< Field> fields) → Interface -
Creates and returns a new logging context with bound collection of
fields
added to existing ones.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited