From f110f61adc5fadf887d7fd3060fa38c34dae1dee Mon Sep 17 00:00:00 2001 From: cslee0034 <98637739+cslee0034@users.noreply.github.com> Date: Fri, 4 Oct 2024 15:44:42 +0900 Subject: [PATCH] chore(docs): Update README.md w/ usage comments (#2507) - Address issue #2370: Fixed the comments in the usage section --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0dc9bb6cc..69be33546 100644 --- a/README.md +++ b/README.md @@ -56,10 +56,14 @@ const logger = winston.createLogger({ defaultMeta: { service: 'user-service' }, transports: [ // - // - Write all logs with importance level of `error` or less to `error.log` - // - Write all logs with importance level of `info` or less to `combined.log` + // - Write all logs with importance level of `error` or higher to `error.log` + // (i.e., error, fatal, but not other levels) // new winston.transports.File({ filename: 'error.log', level: 'error' }), + // + // - Write all logs with importance level of `info` or higher to `combined.log` + // (i.e., fatal, error, warn, and info, but not trace) + // new winston.transports.File({ filename: 'combined.log' }), ], });