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.
- LogLine
Wrapper - A wrapper around a log line that provides formatted and cached representations.
- Logger
- A high-performance logger utilizing a MPSC channel under the hood.
- Shutdown
OnError Trigger - 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
LogLinepayload small.