You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.
The main reason was that you can't mock the logger you get back because it's not an interface. I also didn't like that I couldn't use Infof for certain occasions (e.g. Listening on %s).
It'd be nice to bring back compatibility for the times when you need to work with other libraries.
Thinking something like:
// Pass a fully-built loggerfuncSlog(logLog) *slog.Logger// Alternatively, just pass a handlerfuncSlog(handlerHandler) slog.Handler
Not sure which one's preferable at this time. We could use the same approach for the log package too.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Starting in v0.0.3, I removed
log/slog
support.The main reason was that you can't mock the logger you get back because it's not an interface. I also didn't like that I couldn't use
Infof
for certain occasions (e.g.Listening on %s
).It'd be nice to bring back compatibility for the times when you need to work with other libraries.
Thinking something like:
Not sure which one's preferable at this time. We could use the same approach for the
log
package too.The text was updated successfully, but these errors were encountered: