v0.1.0-pre.020

This commit is contained in:
2026-07-24 22:01:07 +02:00
parent fa2d9d8ecd
commit 4190b2c0ce
84 changed files with 3314 additions and 274 deletions

View File

@@ -1,17 +1,30 @@
// file: kb-logging/src/lib.rs
// version: 1
// version: 6
#![forbid(unsafe_code)]
#![deny(unreachable_pub)]
//! Logging and tracing initialization for applications and workers.
#![warn(missing_docs)]
#![deny(unreachable_pub)]
#![forbid(unsafe_code)]
//! Logging contracts for Khadhroony Bot3.
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;