Fix logging utility.