-
Notifications
You must be signed in to change notification settings - Fork 272
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
Logger as interface, not struct? #18
Comments
I've been thinking about it before and sure. It does make sense. Why do you need this though? |
I just do not like to make my code library-dependent :). At the moment I'm using Btw, I can send a pull request for this feature so we can discuss. Regards. |
@op interfaces are much more flexible to work with. strong +1 the context is a wonderful example of using interfaces for what would otherwise be concrete types: http://godoc.org/code.google.com/p/go.net/context |
I agree too. Thanks for this lib, by the way. |
I also agree. And again, thanks very much for this library! |
Hello guys!
I'm just wondering if you're considering to make Logger interface instead of struct. This can allow to switch between logger implementations.
Even PHP-world decided to develop convenient logger interface :)
The text was updated successfully, but these errors were encountered: