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

Add ability to pass in a logger #11

Open
josegonzalez opened this issue Dec 18, 2020 · 0 comments
Open

Add ability to pass in a logger #11

josegonzalez opened this issue Dec 18, 2020 · 0 comments

Comments

@josegonzalez
Copy link
Contributor

josegonzalez commented Dec 18, 2020

Would be great if we could pass in a Logger somehow to perform logging. This would allow users of the library to change the logging to match what they have within their applications.

The alternative is setting the standard logger via:

import "log"

...

log.SetFlags(0)
log.SetOutput(someLogger)

But the log output doesn't contain a level at that point because of the log.Printf calls (so I guess it would also be nice to change those to something that is a level...).

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

1 participant