improve log config