Added possibility to pass own logger

I'm not trained in git/github so I really hope this is done the correct way.