Skip to content

Support other loggers #52

@mwielbut

Description

@mwielbut

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions