0.1.0
This commit is contained in:
27
migration/khadhroony-bot2-reference/kb_logging/src/lib.rs
Normal file
27
migration/khadhroony-bot2-reference/kb_logging/src/lib.rs
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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;
|
||||
Reference in New Issue
Block a user