Using NLog.Web.AspNetCore 4.9.2
My config looks like this:
<targets>
<target name="logFile" xsi:type="File"
fileName="logs/log-${shortdate}.txt"
layout="${longdate}|${level:uppercase=true}|${logger}|${message}"
archiveFileName="logs/archive/log-{#}.txt"
archiveNumbering="Date"
archiveDateFormat="yyyy-MM-dd"
archiveOldFileOnStartup="true"
maxArchiveDays="1"/>
</targets>
I recieve the following error:
Exception when parsing .\Settings\NLog.config.
Parameter maxArchiveDays not supported on FileTarget
Thanks in advance
