Improvements to logging facility