// file: kb-logging/src/lib.rs // version: 6 //! 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 self::constants::TRACING_TARGET; /// Exposes the legacy file route shape kept for early file-only callers. pub use self::config::LogFileRoute; /// Exposes one configured logging output target. pub use self::config::LogTargetConfig; /// Exposes one configured tracing target filter. pub use self::config::LogTargetFilterConfig; /// Exposes the logging configuration consumed by this crate. pub use self::config::LoggingConfig; /// Exposes the guard that keeps non-blocking logging workers alive. pub use self::tracing_runtime::LoggingGuard; /// Exposes initialization from a raw logging configuration section. pub use self::tracing_runtime::init_logging; /// Returns the canonical tracing target. pub fn tracing_target() -> &'static str { return crate::TRACING_TARGET; }