Skip to main content

Module logging

Module logging 

Source
Expand description

Structured logging infrastructure shared by operational observers.

Structs§

ConfiguredLogger
Logger assembled from LoggerConfig, including optional crash retention.
ConsoleSink
Human-oriented stdout sink, with no terminal-color assumptions.
FileArchiveConfig
Bounded archive configuration for rotated JSONL files.
FileSink
Synchronous bounded JSONL sink; callers choose it only outside hot paths.
FileSinkConfig
Bounded structured JSONL file configuration.
LogDispatcher
Thread-safe fan-out dispatcher; ordinary sinks receive only sanitized events.
LogEvent
Structured operational event passed through the sanitizer before normal sinks.
LogField
One structured field; paths must be supplied as fields instead of embedded text.
LogPolicy
Filters events before formatting and sanitizes values before ordinary sinks.
LogStats
Observable dispatcher counters; sink failures never recursively log.
LoggerConfig
Complete explicit logger configuration.
PathAliases
Explicit local path aliases used by typed path fields.
RingBufferSink
In-memory bounded diagnostic sink.
SensitiveDntSink
Encrypted DNT sink. It has no plaintext fallback and must be explicitly wired.
SensitiveDntSinkConfig
Explicit encrypted sensitive-output configuration.
Verbosity
Detail threshold from V1 (critical) through V9 (deep diagnostics).

Enums§

LogConfigError
Invalid high-level logger configuration.
LogOutputMode
Explicit destinations for ordinary operational logs.
Sensitivity
Explicit information-handling policy, never inferred from verbosity.
Severity
Operational impact of an event.

Constants§

LOG_SIZE_1_MIB
One mebibyte, suitable for small local or short-lived logs.
LOG_SIZE_2_MIB
Two mebibytes, suitable for small application crash logs.
LOG_SIZE_4_MIB
Four mebibytes, suitable for modest local application logs.
LOG_SIZE_8_MIB
Eight mebibytes, suitable for normal rotating application logs.
LOG_SIZE_16_MIB
Sixteen mebibytes, suitable for moderate operational logs.
LOG_SIZE_32_MIB
Thirty-two mebibytes, suitable for busier bounded services.
LOG_SIZE_64_MIB
Sixty-four mebibytes, suitable for high-volume bounded services.

Traits§

LogSink
A destination receiving a sanitized event from crate::LogDispatcher.