Skip to content
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

How to disable logging from sub modules, but keep logging from the "top level" app #17

Closed
alexindigo opened this issue Jul 11, 2017 · 2 comments

Comments

@alexindigo
Copy link

I have several modules that use bole for logging and one of them is very chatty (on info level),
so it would be nice to have ability to filter output stream based on log names, so I can have separate file with app's only logs.

Is it something that could be done in the existing version?

Thank you.

@rvagg
Copy link
Owner

rvagg commented Nov 13, 2019

sorry about not responding to this earlier @alexindigo
I think the answer to this is probably no, but you could do it if you wanted to inspect the output, either JSON parsing or crossing your fingers and matching "level":"info" or similar.
If this is something someone wants to try and tackle then I'd entertain a PR, I'd just be on the lookout for significant increases in complexity and decreases in performance. bole was intended to be simple and fast.

@rvagg rvagg closed this as completed Nov 13, 2019
@alexindigo
Copy link
Author

Oh, this is an old one, let it rest in peace :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants