Issue #246 Reduce server log retention time (!186)

https://dev.sp-tarkov.com/SPT-AKI/Issues/issues/246

Reduces log rotation frequency to 3h.

Co-authored-by: r2go <please@work.now>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/186
Co-authored-by: r2go <r2go@noreply.dev.sp-tarkov.com>
Co-committed-by: r2go <r2go@noreply.dev.sp-tarkov.com>
This commit is contained in:
r2go 2024-01-07 07:39:46 +00:00 committed by Refringe
parent 13ab57298b
commit 31641334aa
No known key found for this signature in database
GPG Key ID: 7715B85B4A6306ED

View File

@ -70,6 +70,7 @@ export abstract class AbstractWinstonLogger implements ILogger
filename: this.filePath,
datePattern: "YYYY-MM-DD",
zippedArchive: true,
frequency: this.getLogFrequency(),
maxSize: this.getLogMaxSize(),
maxFiles: this.getLogMaxFiles(),
format: format.combine(
@ -108,6 +109,11 @@ export abstract class AbstractWinstonLogger implements ILogger
protected abstract getFileName(): string;
protected getLogFrequency(): string
{
return "3h";
}
protected getLogMaxSize(): string
{
return "5m";