优化logging