Closes: #5 Extract logger usage to allow passing settings from the top level down.