Make logger an intrerface

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