From d6b017e72041913a18fefa0194459cebd63ba440 Mon Sep 17 00:00:00 2001 From: Lam Wei Li Date: Wed, 19 Jan 2022 23:18:27 +0800 Subject: [PATCH] chore(docs): updated fileSync.md and misc comments --- docs/fileSync.md | 2 +- types/log4js.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/fileSync.md b/docs/fileSync.md index 380982d9..da5d9063 100644 --- a/docs/fileSync.md +++ b/docs/fileSync.md @@ -12,7 +12,7 @@ The sync file appender writes log events to a file, the only difference to the n Any other configuration parameters will be passed to the underlying node.js core stream implementation: * `encoding` - `string` (default "utf-8") -* `mode`- `integer` (default 0600) +* `mode`- `integer` (default 0o600 - [node.js file modes](https://nodejs.org/dist/latest-v12.x/docs/api/fs.html#fs_file_modes)) * `flags` - `string` (default 'a') ## Example diff --git a/types/log4js.d.ts b/types/log4js.d.ts index b7946da2..51873b4c 100644 --- a/types/log4js.d.ts +++ b/types/log4js.d.ts @@ -178,7 +178,7 @@ export interface DateFileAppender { pattern?: string; // default “utf-8” encoding?: string; - // default 0644 + // default 0600 mode?: number; // default ‘a’ flags?: string;