滚动日志

This commit is contained in:
iioter 2022-12-12 09:14:42 +08:00
parent 004717e950
commit 29f022754d

View File

@ -13,8 +13,8 @@
<!-- the targets to write to -->
<targets>
<!-- File Target for own log messages with extra web details using some ASP.NET core renderers -->
<target xsi:type="File" name="ownFile-web" fileName="./logs/${shortdate}/${shortdate}_${level}.log"
archiveEvery="Hour" archiveAboveSize="20971520"
<target xsi:type="File" name="ownFile-web" fileName="./logs/${shortdate}_${level}.log"
archiveEvery="Hour" archiveAboveSize="10485760"
maxArchiveDays="7"
maxArchiveFiles="10"
layout="${longdate}|${logger}|${message} ${exception:format=tostring}|url: ${aspnet-request-url}|action: ${aspnet-mvc-action}|${callsite}" />