Fix logging formatter