28 lines
960 B
Rust
28 lines
960 B
Rust
// file: kb_logging/src/lib.rs
|
|
// version: 5
|
|
|
|
//! Logging and tracing initialization for applications and workers.
|
|
#![warn(missing_docs)]
|
|
#![deny(unreachable_pub)]
|
|
#![forbid(unsafe_code)]
|
|
|
|
mod config;
|
|
mod constants;
|
|
mod tracing_runtime;
|
|
|
|
/// Canonical tracing target for this crate.
|
|
pub(crate) use crate::constants::TRACING_TARGET;
|
|
|
|
/// Exposes the legacy file route shape kept for early file-only callers.
|
|
pub use crate::config::LogFileRoute;
|
|
/// Exposes one configured logging output target.
|
|
pub use crate::config::LogTargetConfig;
|
|
/// Exposes one configured tracing target filter.
|
|
pub use crate::config::LogTargetFilterConfig;
|
|
/// Exposes the logging configuration consumed by this crate.
|
|
pub use crate::config::LoggingConfig;
|
|
/// Exposes the guard that keeps non-blocking logging workers alive.
|
|
pub use crate::tracing_runtime::LoggingGuard;
|
|
/// Exposes initialization from a raw logging configuration section.
|
|
pub use crate::tracing_runtime::init_logging;
|