Logger performance fixes.