Radarr/NzbDrone.Host/NLog.config

31 lines
1.6 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
2013-02-28 06:59:08 +00:00
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoReload="true"
internalLogLevel="Info"
throwExceptions="true"
2013-05-20 00:30:02 +00:00
internalLogToConsole="true"
internalLogToConsoleError="true">
2013-02-28 06:59:08 +00:00
<extensions>
<add assembly="NzbDrone.Core"/>
<add assembly="NzbDrone.Common"/>
</extensions>
<targets>
<target xsi:type="ColoredConsole" name="consoleLogger" layout="[${level}] ${logger}: ${message} ${onexception:inner=${newline}${newline}${exception:format=ToString}${newline}}"/>
<target xsi:type="NLogViewer" name="udpTarget" address="udp://127.0.0.1:20480" includeCallSite="true" includeSourceInfo="true" includeNLogData="true" includeNdc="true">
<parameter>
<name>Exception</name>
<layout>${exception:format=ToString}</layout>
</parameter>
</target>
<target xsi:type="File" name="rollingFileLogger" fileName="${appLog}" autoFlush="true" keepFileOpen="false"
2013-02-28 06:59:08 +00:00
concurrentWrites="false" concurrentWriteAttemptDelay="50" concurrentWriteAttempts ="10"
2013-05-10 23:53:50 +00:00
archiveAboveSize="1024000" maxArchiveFiles="5" enableFileDelete="true" archiveNumbering ="Rolling"
2013-05-20 00:30:02 +00:00
layout="${date:format=yy-M-d HH\:mm\:ss.f}|${level}|${logger}|${message}${onexception:inner=${newline}${newline}${exception:format=ToString}${newline}}"/>
</targets>
<rules>
2013-06-04 05:54:49 +00:00
<logger name="*" minlevel="Trace" writeTo="consoleLogger"/>
2013-05-07 00:39:33 +00:00
<logger name="*" minlevel="Off" writeTo="udpTarget"/>
2013-06-04 05:54:49 +00:00
<logger name="*" minlevel="Info" writeTo="rollingFileLogger"/>
</rules>
</nlog>