Introduce NullLogger to avoid conditionals