chore(type): added fileNameSep for FileAppender and DateFileAppender

- based on https://github.com/log4js-node/log4js-node/pull/1182
- based on https://github.com/log4js-node/log4js-node/pull/1181
This commit is contained in:
Lam Wei Li 2022-05-12 00:56:44 +08:00
parent 126e286c1a
commit d9d2d8d921
No known key found for this signature in database
GPG Key ID: 90F6ABECF080D7BF

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).