Tweak logging behaviour.