v0.1.0-pre.020
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user