add event macro log wrapper suite

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-10-24 11:16:44 +00:00
parent 9438dc89e6
commit 0e616f1d12
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,11 @@ pub struct Log {
// necessary but discouraged. Remember debug_ log macros are also exported to
// the crate namespace like these.
#[macro_export]
macro_rules! event {
( $level:expr, $($x:tt)+ ) => { ::tracing::event!( $level, $($x)+ ) }
}
#[macro_export]
macro_rules! error {
( $($x:tt)+ ) => { ::tracing::error!( $($x)+ ) }