It should be passing an instance of NullLogger instead. Cleaner than checking if the logger is null