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.
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 onePrintf
function so this PR changes the logger to be defined as an interface.