1#[allow(unused)]
2#[cfg(feature = "log")]
3macro_rules! info {
4 ($($arg:tt)*) => {
5 ::log::info!($($arg)*);
6 };
7}
8#[allow(unused)]
9#[cfg(not(feature = "log"))]
10macro_rules! info {
11 ($($arg:tt)*) => {};
12}
13
14#[cfg(feature = "log")]
15macro_rules! debug {
16 ($($arg:tt)*) => {
17 ::log::debug!($($arg)*);
18 };
19}
20#[cfg(not(feature = "log"))]
21macro_rules! debug {
22 ($($arg:tt)*) => {};
23}
24
25#[cfg(feature = "log")]
26macro_rules! warn {
27 ($($arg:tt)*) => {
28 ::log::warn!($($arg)*);
29 };
30}
31#[cfg(not(feature = "log"))]
32macro_rules! warn {
33 ($($arg:tt)*) => {};
34}
35
36#[cfg(feature = "log")]
37macro_rules! error {
38 ($($arg:tt)*) => {
39 ::log::error!($($arg)*);
40 };
41}
42#[cfg(not(feature = "log"))]
43macro_rules! error {
44 ($($arg:tt)*) => {};
45}
46
47#[cfg(feature = "log")]
48macro_rules! trace {
49 ($($arg:tt)*) => {
50 ::log::trace!($($arg)*);
51 };
52}
53#[cfg(not(feature = "log"))]
54macro_rules! trace {
55 ($($arg:tt)*) => {};
56}