25 lines
No EOL
935 B
XML
25 lines
No EOL
935 B
XML
<?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"
|
|
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
|
|
autoReload="true"
|
|
throwExceptions="false"
|
|
internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log">
|
|
|
|
<variable name="log_title" value="${processname}"/>
|
|
|
|
<targets>
|
|
<target name="console" xsi:type="ColoredConsole" layout="${longdate} ${level} ${message} ${exception:format=ToString}"/>
|
|
<target xsi:type="EventLog"
|
|
name="eventlog"
|
|
log ="Application"
|
|
source="${var:log_title}"
|
|
layout="${message}${newline}${exception:format=ToString}">
|
|
</target>
|
|
</targets>
|
|
|
|
<rules>
|
|
<logger name="*" minlevel="Debug" writeTo="console" />
|
|
<logger name="*" minlevel="Info" writeTo="eventlog" />
|
|
</rules>
|
|
</nlog> |