You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
782 B
14 lines
782 B
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
<targets>
|
|
<target name="errorFile" xsi:type="File" fileName="${basedir}/logs/${logger}/error/${shortdate}.txt"
|
|
layout="${longdate} | ${level:uppercase=false} ${newline}${message} ${newline}${onexception:${exception:format=tostring} ${newline}${stacktrace} ${newline}${newline}"
|
|
autoFlush="true"/>
|
|
<target name="infoFile" xsi:type="File" fileName="${basedir}/logs/${logger}/info/${shortdate}.txt"
|
|
layout="${longdate} | ${level:uppercase=false} ${newline}${message} ${newline}"
|
|
autoFlush="true"/>
|
|
</targets>
|
|
<rules>
|
|
<logger name="*" level="Error" writeTo="errorFile"/>
|
|
<logger name="*" level="Info" writeTo="infoFile" />
|
|
</rules>
|
|
</nlog>
|