Logging configuration optimization