Tweak logging functions