Skip to main content

vibe_workspace/output/
logging.rs

1//! Logging macros for developer/debug output
2
3/// Log a message at the trace level
4#[macro_export]
5macro_rules! log_trace {
6    ($($arg:tt)*) => {{
7        ::tracing::trace!($($arg)*);
8    }};
9}
10
11/// Log a message at the debug level
12#[macro_export]
13macro_rules! log_debug {
14    ($($arg:tt)*) => {{
15        ::tracing::debug!($($arg)*);
16    }};
17}
18
19/// Log a message at the info level
20#[macro_export]
21macro_rules! log_info {
22    ($($arg:tt)*) => {{
23        ::tracing::info!($($arg)*);
24    }};
25}
26
27/// Log a message at the warn level
28#[macro_export]
29macro_rules! log_warn {
30    ($($arg:tt)*) => {{
31        ::tracing::warn!($($arg)*);
32    }};
33}
34
35/// Log a message at the error level
36#[macro_export]
37macro_rules! log_error {
38    ($($arg:tt)*) => {{
39        ::tracing::error!($($arg)*);
40    }};
41}