Fix backwards compatibility in logger