pub mod fmtlog;
pub mod log_v0_4;
#[allow(unused_imports)]
#[cfg(all(feature = "defmt-v1", not(feature = "std")))]
pub(crate) use defmt::{debug, error, info, trace, warn};
#[clippy::format_args]
#[cfg(not(all(feature = "defmt-v1", not(feature = "std"))))]
macro_rules! debug {
(target: $target:expr, $($arg:tt)+) => ({
log::debug!(logger: $crate::logging::log_v0_4::internal::geil(), target: $target, $($arg)+)
});
($($arg:tt)+) => (log::debug!(logger: $crate::logging::log_v0_4::internal::geil(), $($arg)+))
}
#[clippy::format_args]
#[cfg(not(all(feature = "defmt-v1", not(feature = "std"))))]
macro_rules! error {
(target: $target:expr, $($arg:tt)+) => ({
log::error!(logger: $crate::logging::log_v0_4::internal::geil(), target: $target, $($arg)+)
});
($($arg:tt)+) => (log::error!(logger: $crate::logging::log_v0_4::internal::geil(), $($arg)+))
}
#[clippy::format_args]
#[cfg(not(all(feature = "defmt-v1", not(feature = "std"))))]
macro_rules! info {
(target: $target:expr, $($arg:tt)+) => ({
log::info!(logger: $crate::logging::log_v0_4::internal::geil(), target: $target, $($arg)+)
});
($($arg:tt)+) => (log::info!(logger: $crate::logging::log_v0_4::internal::geil(), $($arg)+))
}
#[clippy::format_args]
#[cfg(not(all(feature = "defmt-v1", not(feature = "std"))))]
macro_rules! trace {
(target: $target:expr, $($arg:tt)+) => ({
log::trace!(logger: $crate::logging::log_v0_4::internal::geil(), target: $target, $($arg)+)
});
($($arg:tt)+) => (log::trace!(logger: $crate::logging::log_v0_4::internal::geil(), $($arg)+))
}
#[clippy::format_args]
#[cfg(not(all(feature = "defmt-v1", not(feature = "std"))))]
macro_rules! warni {
(target: $target:expr, $($arg:tt)+) => ({
log::warn!(logger: $crate::logging::log_v0_4::internal::geil(), target: $target, $($arg)+)
});
($($arg:tt)+) => (log::warn!(logger: $crate::logging::log_v0_4::internal::geil(), $($arg)+))
}
#[allow(unused_imports)]
#[cfg(not(all(feature = "defmt-v1", not(feature = "std"))))]
pub(crate) use {debug, error, info, trace, warni as warn};