Skip to main content

obsidian_backups/
log_stub.rs

1#[cfg(feature = "logging")]
2pub use log::{debug, error, info, trace, warn};
3
4#[cfg(not(feature = "logging"))]
5pub use crate::{debug, error, info, trace, warn};
6
7#[cfg(not(feature = "logging"))]
8#[macro_export]
9macro_rules! debug {
10    ($($arg:tt)*) => {};
11}
12
13#[cfg(not(feature = "logging"))]
14#[macro_export]
15macro_rules! info {
16    ($($arg:tt)*) => {};
17}
18
19#[cfg(not(feature = "logging"))]
20#[macro_export]
21macro_rules! warn {
22    ($($arg:tt)*) => {};
23}
24
25#[cfg(not(feature = "logging"))]
26#[macro_export]
27macro_rules! error {
28    ($($arg:tt)*) => {};
29}
30
31#[cfg(not(feature = "logging"))]
32#[macro_export]
33macro_rules! trace {
34    ($($arg:tt)*) => {};
35}