#[cfg(feature = "logging")]
pub use tracing::{debug, enabled, error, info, trace, warn, Level};
#[cfg(not(feature = "logging"))]
#[macro_export]
#[doc(hidden)]
macro_rules! __log_noop_info {
($($arg:tt)*) => {
()
};
}
#[cfg(not(feature = "logging"))]
#[macro_export]
#[doc(hidden)]
macro_rules! __log_noop_warn {
($($arg:tt)*) => {
()
};
}
#[cfg(not(feature = "logging"))]
#[macro_export]
#[doc(hidden)]
macro_rules! __log_noop_debug {
($($arg:tt)*) => {
()
};
}
#[cfg(not(feature = "logging"))]
#[macro_export]
#[doc(hidden)]
macro_rules! __log_noop_error {
($($arg:tt)*) => {
()
};
}
#[cfg(not(feature = "logging"))]
#[macro_export]
#[doc(hidden)]
macro_rules! __log_noop_trace {
($($arg:tt)*) => {
()
};
}
#[cfg(not(feature = "logging"))]
#[macro_export]
#[doc(hidden)]
macro_rules! __log_noop_enabled {
($($arg:tt)*) => {
false
};
}
#[cfg(not(feature = "logging"))]
pub use __log_noop_debug as debug;
#[cfg(not(feature = "logging"))]
pub use __log_noop_enabled as enabled;
#[cfg(not(feature = "logging"))]
pub use __log_noop_error as error;
#[cfg(not(feature = "logging"))]
pub use __log_noop_info as info;
#[cfg(not(feature = "logging"))]
pub use __log_noop_trace as trace;
#[cfg(not(feature = "logging"))]
pub use __log_noop_warn as warn;
#[cfg(not(feature = "logging"))]
#[allow(dead_code)]
pub struct Level;
#[cfg(not(feature = "logging"))]
#[allow(dead_code)]
impl Level {
pub const DEBUG: Self = Self;
pub const INFO: Self = Self;
pub const WARN: Self = Self;
pub const ERROR: Self = Self;
pub const TRACE: Self = Self;
}