教你50招提升ASP.NET性能(十二):在生产环境,仔细考虑你需要记录哪些日志

(18)When in production, carefully consider what you need to log

招数18:

在生产环境,仔细考虑你需要记录哪些日志

Many people deploy to production without checking how logging is currently configured. It is always advisable to check whether your policy is to have logging on or off by default and, if on, what level you should be targeting. In addition, you should check which targets you are outputting to, what archiving strategy you have, and whether your logging infrastructure allows for async logging.
许多人部署到生产环境没有检查日志当前的配置是怎么样的。这始终是明智的,检查你的方案是否记录或者默认关闭,如果记录打开的,你的目标应该是什么等级。另外你应该检查你的输出目标,有什么归档策略,和你的日志系统是否允许异步记录日志。

posted @ 2013-07-18 14:14  安布雷拉  阅读(331)  评论(0编辑  收藏  举报