<?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">

	<targets>
		<target xsi:type="ColoredConsole"
		        name="ColoredConsole-Trace"
		        layout="${longdate} ${uppercase:${level}} ${logger} ${message}"
		        useDefaultRowHighlightingRules="true" />

		<target xsi:type="File"
		        name="FlatFile-Trace"
		        layout="${longdate} ${uppercase:${level}} ${logger} ${message}"
		        fileName="/var/log/Service.Registry/Service.Registry.Host/${shortdate}-Trace.log"
		        keepFileOpen="false"
		        encoding="UTF-8" />

		<target xsi:type="File"
		        name="FlatFile-Error"
		        layout="${longdate} ${uppercase:${level}} ${logger} ${message} ${exception:format=tostring}"
		        fileName="/var/log/Service.Registry/Service.Registry.Host/${shortdate}-Errors.log"
		        keepFileOpen="false"
		        encoding="UTF-8" />


	</targets>

	<rules>
		<logger name="*" minlevel="Info" writeTo="ColoredConsole-Trace" />
		<logger name="*" minlevel="Info" writeTo="FlatFile-Trace" />
		<logger name="*" minlevel="Error" writeTo="FlatFile-Error" />
	</rules>
</nlog>