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

Support other loggers #52

Open
mwielbut opened this issue Feb 6, 2019 · 0 comments
Open

Support other loggers #52

mwielbut opened this issue Feb 6, 2019 · 0 comments

Comments

@mwielbut
Copy link

mwielbut commented Feb 6, 2019

It would be great if the logger on DbMap was defined as an interface with the single Printf function needed rather than the full std log.Logger struct to make it easy to supply custom loggers ie. Logrus.

// in DbMap
logger interface {
	Printf(format string, v ...interface{}) 
}
// vs.
logger    *log.Logger

Happy to supply a PR if there's interest...

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