123456789101112131415161718192021222324 |
- <?xml version="1.0" encoding="utf-8" ?>
- <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- autoReload="true"
- internalLogLevel="info"
- internalLogFile="internal-nlog.txt">
- <!-- define various log targets -->
- <targets>
- <!-- write logs to file -->
- <target xsi:type="File" name="allfile" fileName="logs/${shortdate}.log"
- layout="${longdate}|${logger}|${uppercase:${level}}|${message} ${exception}" />
- <target xsi:type="Null" name="blackhole" />
- </targets>
- <rules>
- <!--All logs, including from Microsoft-->
- <logger name="*" minlevel="Debug" writeTo="allfile" />
- <!--Skip Microsoft logs and so log only own logs>
- <logger name="Microsoft.*" minlevel="Trace" writeTo="blackhole" final="true" />
- <logger name="*" minlevel="Trace" writeTo="ownFile-web" /-->
- </rules>
- </nlog>
|