use extern namespace in log wrapper macros
convert use tracing statements Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
0e46b750a0
commit
c05f00661b
3 changed files with 11 additions and 11 deletions
|
@ -20,25 +20,25 @@ pub use tracing_subscriber::EnvFilter;
|
|||
|
||||
#[macro_export]
|
||||
macro_rules! error {
|
||||
( $($x:tt)+ ) => { tracing::error!( $($x)+ ); }
|
||||
( $($x:tt)+ ) => { ::tracing::error!( $($x)+ ); }
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! warn {
|
||||
( $($x:tt)+ ) => { tracing::warn!( $($x)+ ); }
|
||||
( $($x:tt)+ ) => { ::tracing::warn!( $($x)+ ); }
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! info {
|
||||
( $($x:tt)+ ) => { tracing::info!( $($x)+ ); }
|
||||
( $($x:tt)+ ) => { ::tracing::info!( $($x)+ ); }
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! debug {
|
||||
( $($x:tt)+ ) => { tracing::debug!( $($x)+ ); }
|
||||
( $($x:tt)+ ) => { ::tracing::debug!( $($x)+ ); }
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! trace {
|
||||
( $($x:tt)+ ) => { tracing::trace!( $($x)+ ); }
|
||||
( $($x:tt)+ ) => { ::tracing::trace!( $($x)+ ); }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue