Skip to main content

Module logger

Module logger 

Source

Re-exports§

pub use super::config::LoggerConfig;

Structs§

LogGuard
A guard that manages the lifecycle of the logging subsystem.
LogLine
Represents a log event which includes a message.
LogLineWrapper
A wrapper around a log line that provides formatted and cached representations.
Logger
A high-performance logger utilizing a MPSC channel under the hood.
ShutdownOnErrorTrigger
The first error log captured after shutdown-on-error is armed.

Enums§

LogEvent
Represents a type of log event.

Functions§

arm_shutdown_on_error
Arms shutdown-on-error handling for the current run.
disarm_shutdown_on_error
Disarms shutdown-on-error handling and clears any pending trigger.
log
should_filter_log
Determines if a log line should be filtered out based on module and component filters.
sync_to_disk
Flushes and syncs file logs to disk through the logging thread.
take_shutdown_on_error_trigger
Returns and clears the pending shutdown-on-error trigger, if one was recorded.
try_drain_shutdown_on_error_trigger
Conditionally drains the pending shutdown-on-error trigger.

Type Aliases§

LogFields
Storage for structured log fields. Inline capacity is intentionally zero to keep the producer-side LogLine payload small.