Reading this: https://docs.rs/log/0.4.8/log/#compile-time-filters, I stumbled across this phrasing:
Log invocations at disabled levels will be skipped and will not even be present in the resulting binary unless the log level is specified dynamically
I don't understand how this can be true -- either the call site is completely eliminated when release_max_level_XXX is used, or it isn't. If it is, I don't see how any dynamic logging adjustment can make it re-appear...
So the question boils down to - if I have a trace! invocation, and I set release_max_level_debug, what will be present in the final binary instead of that trace call? A condition check? nothing?
Reading this: https://docs.rs/log/0.4.8/log/#compile-time-filters, I stumbled across this phrasing:
I don't understand how this can be true -- either the call site is completely eliminated when release_max_level_XXX is used, or it isn't. If it is, I don't see how any dynamic logging adjustment can make it re-appear...
So the question boils down to - if I have a
trace!invocation, and I setrelease_max_level_debug, what will be present in the final binary instead of thattracecall? A condition check? nothing?