Update README.md
This commit is contained in:
parent
7fc488315e
commit
76235d1abb
@ -9,3 +9,12 @@
|
||||
- enableArchiveFileCompression: Опция для сжатия архивных файлов. Отключена в примере, но можно включить, установив значение true.
|
||||
- keepFileOpen="false" и concurrentWrites="true": Настройки для повышения производительности при многопоточной записи.
|
||||
|
||||
```
|
||||
Do not mix "Dynamic FileName Archive Logic" together with "Static FileName Archive Logic" as one will get unexpected archive behavior.
|
||||
|
||||
Dynamic FileName Archive Logic - Enabled by using fileName="${basedir}/AppLog.${shortdate}.log". This means it will roll / archive dynamically because of the layout-renderer-logic in ${date} (Changes on day-change). Never use it together with archiveFileName="..." or archiveEvery="Day".
|
||||
|
||||
Static FileName Archive Logic - Enabled by using archiveEvery="Day" and archiveFileName="...". This means it will expect the FileName to be static (Ex. fileName="${basedir}/AppLog.txt"). Never use dynamic layout (Ex. ${date}) in archiveFileName="..." or fileName="...". Instead use archiveDateFormat together with {#}.
|
||||
```
|
||||
|
||||
https://github.com/NLog/NLog/wiki/File-target#dynamic-vs-static-archive-logic
|
||||
Loading…
x
Reference in New Issue
Block a user