Crate logforth_core

Crate logforth_core 

Source
Expand description

Core structs and functions for the logforth logging framework.

Re-exports§

pub use self::append::Append;
pub use self::diagnostic::Diagnostic;
pub use self::filter::Filter;
pub use self::layout::Layout;
pub use self::trap::Trap;

Modules§

append
Dispatch log records to various targets.
diagnostic
Mapped Diagnostic Context (MDC).
filter
Filters for log records.
kv
Key-value pairs in a log record or a diagnostic context.
layout
Layouts for formatting log records.
record
Log record and metadata.
trap
Traps for processing errors.

Structs§

DispatchBuilder
A builder for configuring a log dispatch, including filters and appenders.
Error
The error struct of logforth.
Logger
A logger that dispatches log records to one or more dispatcher.
LoggerBuilder
A builder for configuring log dispatching and setting up the global logger.

Functions§

builder
Create a new empty LoggerBuilder instance for configuring log dispatching.
default_logger
Return the default global logger instance.
set_default_logger
Set the default global logger instance.