StructuredLogger class
A Logger that writes one JSON object per line to an IOSink (stderr by default), filtering records below minLevel.
- Implemented types
- Mixed-in types
Constructors
Properties
Methods
-
child(
Map< String, Object?> context) → Logger -
Returns a logger that merges
contextinto every record it emits.override -
debug(
String message, {Map< String, Object?> context = const {}}) → void -
Convenience for LogLevel.debug.
inherited
-
error(
String message, {Map< String, Object?> context = const {}}) → void -
Convenience for LogLevel.error.
inherited
-
info(
String message, {Map< String, Object?> context = const {}}) → void -
Convenience for LogLevel.info.
inherited
-
log(
LogLevel level, String message, {Map< String, Object?> context = const {}}) → void -
Emits a log record at
levelwithmessageand optionalcontext.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
warn(
String message, {Map< String, Object?> context = const {}}) → void -
Convenience for LogLevel.warn.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited