10000 docs: added link to file mode docs · Hacker-FEX/log4js-node@aa6e9f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit aa6e9f4

Browse files
author
Gareth Jones
committed
docs: added link to file mode docs
1 parent 30b7728 commit aa6e9f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/dateFile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This is a file appender that rolls log files based on a configurable time, rathe
1111

1212
Any other configuration parameters will be passed to the underlying [streamroller](https://github.com/nomiddlename/streamroller) implementation (see also node.js core file streams):
1313
* `encoding` - `string` (default "utf-8")
14-
* `mode`- `integer` (default 0644)
14+
* `mode`- `integer` (default 0o644 - [node.js file modes](https://nodejs.org/dist/latest-v12.x/docs/api/fs.html#fs_file_modes))
1515
* `flags` - `string` (default 'a')
1616
* `compress` - `boolean` (default false) - compress the backup files during rolling (backup files will have `.gz` extension)
1717
* `alwaysIncludePattern` - `boolean` (default false) - include the pattern in the name of the current log file as well as the backups.

docs/file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The file appender writes log events to a file. It supports an optional maximum f
1212

1313
Any other configuration parameters will be passed to the underlying [streamroller](https://github.com/nomiddlename/streamroller) implementation (see also node.js core file streams):
1414
* `encoding` - `string` (default "utf-8")
15-
* `mode`- `integer` (default 0644)
15+
* `mode`- `integer` (default 0o644 - [node.js file modes](https://nodejs.org/dist/latest-v12.x/docs/api/fs.html#fs_file_modes))
1616
* `flags` - `string` (default 'a')
1717
* `compress` - `boolean` (default false) - compress the backup files during rolling (backup files will have `.gz` extension)
1818
* `keepFileExt` - `boolean` (default false) - preserve the file extension when rotating log files (`file.log` becomes `file.1.log` instead of `file.log.1`)

0 commit comments

Comments
 (0)
0