Improve log config