-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
level_for_module
level-filtering for modules, not targets
#109
Comments
@daboross is there a way to get fern to work with tracing in the meantime? |
I get the error
Here is a repo that reproduces the error. Is this error related to the targets for module level filtering? I think this might be related to this issue: tokio-rs/tracing#1237 in |
No, not at the moment. I would say to use We might be able to get a fix in on tracing's side, if the fact that they overwrite the
This is unrelated - looks like it was solved in discussion with the other issue, though! Agreed with the notgull's comment there - it looks like a conflict for the global logger - there can be only one. You may be able to get this to work without modifications if you can set up If you use |
Some producers, such as
tracing
, don't have useful information in the log target, but do populate the log module: see #85.While filtering based on target should be the default, could we do a separate filter for the module?
Note: it should be well-documented that this does not in interact with the shortest-first hierarchy of target filtering, and doesn't respect
info!(target: "events", "echo")
-style targets.I think we could also improve the docs for
level_for
by usinginfo!(target:..., ...)
as an example to demonstrate the difference between targets and modules.The text was updated successfully, but these errors were encountered: