modl icon indicating copy to clipboard operation
modl copied to clipboard

Support other loggers

Open mwielbut opened this issue 7 years ago • 0 comments

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...

mwielbut avatar Feb 06 '19 13:02 mwielbut