Allowing logger to be overridden