滚动日志
This commit is contained in:
parent
004717e950
commit
29f022754d
@ -13,8 +13,8 @@
|
|||||||
<!-- the targets to write to -->
|
<!-- the targets to write to -->
|
||||||
<targets>
|
<targets>
|
||||||
<!-- File Target for own log messages with extra web details using some ASP.NET core renderers -->
|
<!-- 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"
|
<target xsi:type="File" name="ownFile-web" fileName="./logs/${shortdate}_${level}.log"
|
||||||
archiveEvery="Hour" archiveAboveSize="20971520"
|
archiveEvery="Hour" archiveAboveSize="10485760"
|
||||||
maxArchiveDays="7"
|
maxArchiveDays="7"
|
||||||
maxArchiveFiles="10"
|
maxArchiveFiles="10"
|
||||||
layout="${longdate}|${logger}|${message} ${exception:format=tostring}|url: ${aspnet-request-url}|action: ${aspnet-mvc-action}|${callsite}" />
|
layout="${longdate}|${logger}|${message} ${exception:format=tostring}|url: ${aspnet-request-url}|action: ${aspnet-mvc-action}|${callsite}" />
|
||||||
|
Loading…
Reference in New Issue
Block a user