Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
生成/配置日志级别取决于解决方案配置(例如调试与发布)的NLog配置文件 (NLog.config) 的良好/典型策略是什么?是否有任何内置的 NLog 支持,或者像SlowCheetah这样的方法?
我已将 NLog 配置移至 web.config 和 app.config 部分。假设您有一个依赖于发布的配置部署,这就是它的全部内容。
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>