diff --git a/project/src/utils/logging/AbstractWinstonLogger.ts b/project/src/utils/logging/AbstractWinstonLogger.ts index 19071d6e..86a6975b 100644 --- a/project/src/utils/logging/AbstractWinstonLogger.ts +++ b/project/src/utils/logging/AbstractWinstonLogger.ts @@ -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";