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

glog handler for vmodule style filtering #126

Open
karalabe opened this issue Feb 22, 2017 · 2 comments
Open

glog handler for vmodule style filtering #126

karalabe opened this issue Feb 22, 2017 · 2 comments

Comments

@karalabe
Copy link
Contributor

Google's glog logger supports a few interesting features, such as log level control based on path patterns as well as generating backlogs at certain log positions. These can be really useful when we want to raise the log level of only some packages, or even some file to debug some issues.

I already have all this implemented as a log15 handler. Would there be any interest in merging such a feature upstream?

@decibel
Copy link

decibel commented Jan 20, 2018

I've pondered that kind of logging ability as well. In addition to a file filter, I've pondered a filter based on function name. I've also thought about adding some notion of callstack support, so you could do something like "Give me DEBUG output for function Foo() and everything Foo() calls, up to 3 level down."

@karalabe
Copy link
Contributor Author

We have implemented and used this in our fork at Ethereum, if anyone's interested https://github.com/ethereum/go-ethereum/tree/master/log

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