Make logger an interface

It would be nice for the logger to be an interface instead of having to be of type logger