Merge pull request #1241 from log4js-node/update-types

chore(type): added fileNameSep for FileAppender and DateFileAppender
This commit is contained in:
Lam Wei Li 2022-05-12 01:14:37 +08:00 committed by GitHub
commit 79048095d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
types/log4js.d.ts vendored
View File

@ -149,6 +149,8 @@ export interface FileAppender {
compress?: boolean;
// (defaults to false) preserve the file extension when rotating log files (`file.log` becomes `file.1.log` instead of `file.log.1`).
keepFileExt?: boolean;
// (defaults to .) the filename separator when rolling. e.g.: abc.log`.`1 or abc`.`1.log (keepFileExt)
fileNameSep?: string;
}
export interface SyncfileAppender {
@ -198,6 +200,8 @@ export interface DateFileAppender {
compress?: boolean;
// (defaults to false) preserve the file extension when rotating log files (`file.log` becomes `file.2017-05-30.log` instead of `file.log.2017-05-30`).
keepFileExt?: boolean;
// (defaults to .) the filename separator when rolling. e.g.: abc.log`.`2013-08-30 or abc`.`2013-08-30.log (keepFileExt)
fileNameSep?: string;
// (defaults to false) include the pattern in the name of the current log file.
alwaysIncludePattern?: boolean;
// (defaults to 1) the number of old files that matches the pattern to keep (excluding the hot file).