StructuredLogger class

A structured logger: named, hierarchical, with typed fields.

Constructors

StructuredLogger(String name)
Creates (or fetches) the logger for name.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
Dotted logger name (zuraffa.session).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

child(String childName) → StructuredLogger
A child logger (parent.child).
debug(String message, [Map<String, Object?>? fields]) → void
Debug-level log.
error(String message, [Map<String, Object?>? fields]) → void
Error-level log.
info(String message, [Map<String, Object?>? fields]) → void
Info-level log.
log(LogLevel level, String message, [Map<String, Object?>? fields]) → void
Logs message at level with structured fields.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
warning(String message, [Map<String, Object?>? fields]) → void
Warning-level log.

Operators

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