structured_logger library
Structured logging for Flutter with pluggable output sinks.
Use StructureLogger to emit structured log events and attach one or more LogSink implementations such as SimpleLineSink, DefaultSink, or SinkSeq.
Classes
- DefaultSink
-
Writes each log event to the Dart developer log via
dart:developer. - LogModel
- Structured log event passed to LogSink.write.
- LogSink
- Destination that receives structured log events from StructureLogger.
- SimpleLineSink
- Prints a single human-readable line by interpolating LogModel.data into the message template.
- SinkSeq
- Sends structured log events to a Seq server using the CLEF format.
- StructureLogger
- Central logger that fans out structured events to registered LogSinks.
Enums
- LogLevel
- Severity levels used when emitting logs through StructureLogger.
Extensions
- LogLevelExtension on LogLevel
- String values for LogLevel used in serialized log output.