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
9846adc68b
commit
28cd6903ef
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user