Unable to use `log_enabled`
dignifiedquire opened this issue · 0 comments
dignifiedquire commented
use kv_log_macro::{log_enabled, level::Debug};
if log_enabled!(Debug) {
// DO THINGs
}
Fails to compile
error[E0425]: cannot find function `__private_api_enabled` in crate `$crate`
--> src/log/middleware.rs:70:16
|
70 | if log_enabled!(Debug) {
| ^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `__private_api_log`
|
::: /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/kv-log-macro-1.0.4/src/lib.rs:228:1
|
228 | / pub fn __private_api_log(
229 | | args: fmt::Arguments<'_>,
230 | | level: Level,
231 | | &(target, module_path, file, line): &(&str, &'static str, &'static str, u32),
... |
244 | | );
245 | | }
| |_- similarly named function `__private_api_log` defined here
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)