Fix logger

I think the commit comments explain everything.

Cheers, Anton