Do not use global logger when missing to fix NPE during testing