Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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="myformat"
- value="${longdate} | ${level} | ${logger} | ${message} | ${exception:format=toString}"/>
- <targets>
- <target xsi:type="ColoredConsole" name="console"
- layout="${myformat}" />
- <target xsi:type="File" name="file"
- fileName="log.txt" layout="${myformat}" />
- </targets>
- <rules>
- <logger name="*" minlevel="Trace" writeTo="file" />
- <logger name="*" minlevel="Debug" writeTo="console" />
- </rules>
- </nlog>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement