Open praveenperera opened 1 year ago
We unconditionally log at debug level (though maybe this really should be trace level), however depending on what log implementation you use you can raise the minimal log level for a particular module. In my project we use a submodule for the generated code:
mod ffi {
use super::*;
uniffi::include_scaffolding!("glean");
}
and then filter this in the different log configurations: https://github.com/mozilla/glean/blob/main/glean-core/src/lib.rs#L710-L743
@badboy that's a good idea, I'll move the noisy functions to a different module and set the log level there. Thanks
But I agree I think trace
might be a better level for these logs.
Is this issue still open? Could I submit a PR?
Yep, a PR would be welcome!
Is it possible to not have one function log every time its called?
I have a very simple function
Its called a lot of times and drowns out all the other logs, would it be possible to opt out of logging on a per function basis?