Expand description
Lightweight structured logging for the sc-observability workspace.
This crate owns logging-only concerns: logger configuration, built-in file and console sinks, sink fan-out, filtering, redaction, and logging health. It intentionally avoids typed observation routing and OTLP transport logic.
Modules§
- constants
- Crate-local constants for
sc-observability. - error_
codes - Stable
ErrorCoderegistry forsc-observability.
Structs§
- Action
Name - Validated stable action name for log and span events.
- Console
Sink - Built-in sink that renders log events to a configured output stream (stdout or stderr).
- Error
Code - Stable machine-readable error code used across diagnostics and error types.
- Event
Error - Event validation or lifecycle error returned during emit paths.
- Jsonl
File Sink - Built-in JSONL file sink with rotation and retention handling.
- Jsonl
LogReader - Independent JSONL reader for historical query and follow operations.
- LogEvent
- Structured log record emitted by the logging and routing layers.
- LogFollow
Session - Tail-style follow session over the active JSONL log and its rotation set.
- LogQuery
- Shared historical/follow query contract used by the logging reader/runtime layers.
- LogSnapshot
- Stable synchronous result contract returned by query/follow polling surfaces.
- Logger
- Lightweight structured logging runtime with built-in query and follow support.
- Logger
Builder - Construction-time logger builder that owns sink registration.
- Logger
Config - Public configuration for the lightweight logging runtime.
- Logging
Health Report - Aggregate logging health report.
- Outcome
Label - Validated stable outcome label for event results.
- Process
Identity - Caller-resolved process identity attached to observations and log events.
- Redaction
Policy - Redaction settings applied to log events before sink fan-out.
- Retention
Policy - Retention limits for rotated JSONL files owned by the built-in file sink.
- Rotation
Policy - Rotation limits for the built-in JSONL file sink.
- Schema
Version - Validated schema version label for shared envelopes and log records.
- Service
Name - Validated service name carried in logs and telemetry.
- Sink
Health - Health summary for one concrete logging sink.
- Sink
Registration - Construction-time sink registration pairing one sink with an optional filter.
- Target
Category - Validated stable target category for log events.
- Timestamp
- Canonical UTC timestamp type used across the workspace.
Enums§
- Level
- Canonical event/log severity level.
- Logging
Health State - Top-level health state for the lightweight logging layer.
- Sink
Health State - Health state for an individual log sink.
Constants§
- OBSERVATION_
ENVELOPE_ VERSION - Current version string for the observation envelope contract.