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:
parent
13ab57298b
commit
31641334aa
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user