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

Possibility to attach log handler #9

Closed
bennol opened this issue Aug 14, 2016 · 2 comments
Closed

Possibility to attach log handler #9

bennol opened this issue Aug 14, 2016 · 2 comments

Comments

@bennol
Copy link

bennol commented Aug 14, 2016

I am wondering whether there is a built-in mechanism for attaching additional code that handles a log.
I've recently started using a cloud logging framework and would like to attach the frameworks logging call to all my existing Log.*("...") calls. Is there an intended attachment point that I have overseen or is there no option without modifying your code?

Thanks in advance
Benno

@delba
Copy link
Owner

delba commented Aug 27, 2016

Hi @bennol , did you try subclassing Logger ?

@delba delba closed this as completed Aug 27, 2016
@bennol
Copy link
Author

bennol commented Aug 28, 2016

@delba Thanks for your response - That's what I eventually did.

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