#[cfg(feature = "log")]
macro_rules! log_debug {
( $($args:tt)* ) => {
log::debug!( $($args)* )
}
}
#[cfg(all(feature = "default-thread-pool", feature = "log"))]
macro_rules! log_error {
( $($args:tt)* ) => {
log::error!( $($args)* )
}
}
#[cfg(all(feature = "log", feature = "log_parallelism"))]
macro_rules! log_info {
( $($args:tt)* ) => {
log::info!( $($args)* )
}
}
#[cfg(all(feature = "log", feature = "log_parallelism"))]
macro_rules! log_trace {
( $($args:tt)* ) => {
log::trace!( $($args)* )
}
}
#[cfg(all(feature = "default-thread-pool", feature = "log"))]
macro_rules! log_warn {
( $($args:tt)* ) => {
log::warn!( $($args)* )
}
}
#[cfg(not(feature = "log"))]
macro_rules! log_debug {
( $($args:tt)* ) => {
()
};
}
#[cfg(all(feature = "default-thread-pool", not(feature = "log")))]
macro_rules! log_error {
( $($args:tt)* ) => {
()
};
}
#[cfg(all(not(feature = "log"), feature = "log_parallelism"))]
macro_rules! log_info {
( $($args:tt)* ) => {
()
};
}
#[cfg(all(not(feature = "log"), feature = "log_parallelism"))]
macro_rules! log_trace {
( $($args:tt)* ) => {
()
};
}
#[cfg(all(feature = "default-thread-pool", not(feature = "log")))]
macro_rules! log_warn {
( $($args:tt)* ) => {
()
};
}
pub(crate) use log_debug;
#[cfg(feature = "default-thread-pool")]
pub(crate) use {log_error, log_warn};
#[cfg(feature = "log_parallelism")]
pub(crate) use {log_info, log_trace};