allows overriding of logger object