Allow the logger to be null