Improve log configuration