mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-27 02:56:36 +02:00
add event macro log wrapper suite
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
9438dc89e6
commit
0e616f1d12
1 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,11 @@ pub struct Log {
|
||||||
// necessary but discouraged. Remember debug_ log macros are also exported to
|
// necessary but discouraged. Remember debug_ log macros are also exported to
|
||||||
// the crate namespace like these.
|
// the crate namespace like these.
|
||||||
|
|
||||||
|
#[macro_export]
|
||||||
|
macro_rules! event {
|
||||||
|
( $level:expr, $($x:tt)+ ) => { ::tracing::event!( $level, $($x)+ ) }
|
||||||
|
}
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! error {
|
macro_rules! error {
|
||||||
( $($x:tt)+ ) => { ::tracing::error!( $($x)+ ) }
|
( $($x:tt)+ ) => { ::tracing::error!( $($x)+ ) }
|
||||||
|
|
Loading…
Add table
Reference in a new issue