logger library

Classes

ConsoleOutput
Pretty-prints log records to stdout with optional ANSI colors.
LogConfig
Snapshot of controller configuration (for remote control / diagnostics).
LogController
Central log dispatcher.
LogEnricher
Enricher adds fields to every log record passing through the pipeline.
LogEvent
A point-in-time log event.
LogFilter
Filter criteria for log subscriptions and queries.
LogOutput
Interface for log output backends.
LogRecord
Base type for all log records flowing through the pipeline.
LogRedactor
Redacts sensitive fields from log record data.
LogScope
Lightweight logging handle bound to a scope name and controller.
LogSpan
A completed operation span with duration.
LogSpanHandle
Handle to an active (in-progress) span.
LogSpanStart
Marks the beginning of a span.
RingBufferOutput
In-memory circular buffer that keeps the last N log records.
RpcLogOutput
Log output that sends records to a remote peer via RPC.
RpcLogResponder
Accepts log records from a remote peer and feeds them into a local LogController.
RpcLogServiceCaller
Client-side API for connecting to a remote log service.
RpcLogServiceResponder
Exposes local logs to remote peers for diagnostics and remote control.
SamplingConfig
Per-level sampling configuration.
SamplingState
Runtime sampling state that tracks record counts per level within the current interval.

Enums

ConsoleFormat
Console output format.
RpcLogLevel
Log severity levels.
SpanStatus
Status of a completed span.

Typedefs

RpcLogConnectionCheck = bool Function()
Callback type for checking if the RPC connection is active.
RpcLogSendCallback = Future<void> Function(Map<String, dynamic> json)
Callback type for sending a log record over RPC. The implementation should serialize and send the record to the remote peer. Returns a future that completes when the send is done (or fails).
RpcLogStreamCall = Stream<Map<String, dynamic>> Function(String method, Map<String, dynamic> request)
Callback type for streaming RPC calls to the remote log service.
RpcLogUnaryCall = Future<Map<String, dynamic>> Function(String method, Map<String, dynamic> request)
Callback types for RPC calls to the remote log service.
RpcLogVoidCall = Future<void> Function(String method, Map<String, dynamic> request)
Callback type for fire-and-forget RPC calls to the remote log service.
SpanCompleteCallback = void Function(LogSpan span)
Callback for when a span ends and should be emitted.
SpanEventCallback = void Function(LogEvent event)
Callback for emitting live events from within a span.
SpanStartCallback = void Function(LogSpanStart start)
Callback for emitting span start.