When no logger is given, the null logger fallback will cause a NameError