StructuredLogger class
A structured logger: named, hierarchical, with typed fields.
Constructors
- StructuredLogger(String name)
-
Creates (or fetches) the logger for
name.factory
Properties
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
messageatlevelwith structuredfields. -
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