Interface class abstract interface

Interface represents a set of common methods that is implemented by both Logger and logging context returned by Interface.withFields.

Implementers
Available extensions

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

debug(String message, [Iterable<Field>? fields]) → void

Available on Interface, provided by the DefaultLog extension

Emits a record with message and Level.debug severity level.
error(String message, [Iterable<Field>? fields]) → void

Available on Interface, provided by the DefaultLog extension

Emits a record with message and Level.error severity level.
fatal(String message, [Iterable<Field>? fields]) → void

Available on Interface, provided by the DefaultLog extension

Emits a record with message and Level.fatal severity level.
info(String message, [Iterable<Field>? fields]) → void

Available on Interface, provided by the DefaultLog extension

Emits a record with message and Level.info severity level.
log(Level level, String message, [Iterable<Field>? fields]) → void
Emits a record with message and level severity level.
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 and level severity level; to stop tracing call Timer.stop on the returned timer.
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 with message 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.

Operators

operator ==(Object other) bool
The equality operator.
inherited