jmoiron / modl

golang database modelling library
MIT License
479 stars 48 forks source link

Make logger an interface #53

Open mwielbut opened 5 years ago

mwielbut commented 5 years ago

The current implementation requires passing in the concrete standard log.Logger struct which makes it cumbersome use an alternative logger, such as Logrus. Modl is only using one Printf function so this PR changes the logger to be defined as an interface.