IPXRelay/IPXRelay.Server/nlog.config
2023-09-08 18:03:07 -05:00

27 lines
No EOL
935 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<!-- XSD manual extracted from package NLog.Schema: https://www.nuget.org/packages/NLog.Schema-->
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xsi:schemaLocation="NLog NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoReload="true">
<!-- the targets to write to -->
<targets>
<!-- write logs to file -->
<target
xsi:type="File"
name="logfile"
fileName="Logs\IPXRelay.log"
layout="${longdate}|${level}|${message}"
maxArchiveFiles="30"
archiveNumbering="Sequence"
archiveAboveSize="52428800"
archiveFileName="Logs\IPXRelay.{#######}.log" />
<target xsi:type="Console" name="logconsole" layout="${longdate}|${level}|${message}" />
</targets>
<!-- rules to map from logger name to target -->
<rules>
<logger name="*" minlevel="Trace" writeTo="logfile,logconsole" />
</rules>
</nlog>