<?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>
    <!-- Log-Datei mit Tagesrotation -->
    <target name="file" xsi:type="File" fileName="logs/logfile-${shortdate}.log" layout="${longdate} | ${level:uppercase=true} | ${message} ${exception:format=tostring}" archiveFileName="logs/old/log.{#}.log" archiveNumbering="Rolling" maxArchiveFiles="10" concurrentWrites="true" keepFileOpen="false" />
    <!-- Debug-Konsole (Visual Studio Output) -->
    <target name="debug" xsi:type="Debugger" layout="${longdate} | ${level} | ${message} ${exception}" />
    <!-- Windows Event Log (optional) -->
    <target name="eventlog" xsi:type="EventLog" source="AnalytixusApp" layout="${longdate} | ${level} | ${message} ${exception}" />
  </targets>
  <rules>
    <logger name="*" minlevel="Info" writeTo="file,debug" />
  </rules>
</nlog>