Fix logging defines