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 chomp
parent 9846adc68b
commit 28cd6903ef

View File

@ -69,6 +69,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(
@ -107,6 +108,11 @@ export abstract class AbstractWinstonLogger implements ILogger
protected abstract getFileName(): string;
protected getLogFrequency(): string
{
return "3h";
}
protected getLogMaxSize(): string
{
return "5m";