improvements for global logging