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.
私の .net アプリケーションでは、ロギングに nLog を使用していますが、.info ロギングを無効にしたい (つまり、.error および .fatal ログ機能を有効にする必要があります) そのためのオプションはありますか? 助けてください
app.config ファイルの nlog 構成の rules セクションで、最小ログ レベルを設定できます。たとえば、次のように nlog を構成して、警告以上 (エラーと致命的なものを含み、情報やトレースは含まない) のみが「file」という名前のターゲットに記録されるようにします。
<nlog> <rules> <logger name="*" minlevel="Warn" writeTo="file" /> </rules> </nlog>