This commit is contained in:
@@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
AyaNova logs important events to the file log-ayanova.txt for troubleshooting purposes.
|
AyaNova logs important events to the file log-ayanova.txt for troubleshooting purposes.
|
||||||
|
|
||||||
Every Wednesday it archives the current log file to a numbered archive log file, for example log-ayanova-1.txt, log-ayanova-2.txt etc.
|
The log file is archived when it reaches 1mb in size to a rotating set of 9 numbered archive log files, for example log-ayanova-1.txt, log-ayanova-2.txt etc.
|
||||||
Any log older than 4 weeks is deleted permanently; 4 total logs are kept, which means a total of one month of logs are kept at any given time.
|
|
||||||
|
This means there are a total of 10mb of logs kept at any given time.
|
||||||
|
|
||||||
## Log path
|
## Log path
|
||||||
|
|
||||||
|
|||||||
@@ -132,9 +132,9 @@ namespace AyaNova
|
|||||||
fileTarget.FileName = Path.Combine(ServerBootConfig.AYANOVA_LOG_PATH, "log-ayanova.txt");
|
fileTarget.FileName = Path.Combine(ServerBootConfig.AYANOVA_LOG_PATH, "log-ayanova.txt");
|
||||||
fileTarget.Layout = "${longdate}|${uppercase:${level}}|${logger}|${message:exceptionSeparator==>:withException=true}";
|
fileTarget.Layout = "${longdate}|${uppercase:${level}}|${logger}|${message:exceptionSeparator==>:withException=true}";
|
||||||
fileTarget.ArchiveFileName = Path.Combine(ServerBootConfig.AYANOVA_LOG_PATH, "log-ayanova-{#}.txt");
|
fileTarget.ArchiveFileName = Path.Combine(ServerBootConfig.AYANOVA_LOG_PATH, "log-ayanova-{#}.txt");
|
||||||
fileTarget.ArchiveNumbering = ArchiveNumberingMode.Date;
|
fileTarget.ArchiveNumbering = ArchiveNumberingMode.Rolling;//so expect to see 1 to 10 or 0 to ten as may be
|
||||||
fileTarget.ArchiveEvery = FileArchivePeriod.Wednesday;
|
fileTarget.ArchiveAboveSize = 1000000;//1mb maximum file size
|
||||||
fileTarget.MaxArchiveFiles = 3;
|
fileTarget.MaxArchiveFiles = 9;//max 10 files totalling 10mb, the current log-ayanova.txt and log-ayanova-[0-9].txt
|
||||||
|
|
||||||
// Step 4. Define rules
|
// Step 4. Define rules
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user