Skip to content

Commit f110f61

Browse files
authoredOct 4, 2024
chore(docs): Update README.md w/ usage comments (#2507)
- Address issue #2370: Fixed the comments in the usage section
1 parent f5dde86 commit f110f61

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,14 @@ const logger = winston.createLogger({
5656
defaultMeta: { service: 'user-service' },
5757
transports: [
5858
//
59-
// - Write all logs with importance level of `error` or less to `error.log`
60-
// - Write all logs with importance level of `info` or less to `combined.log`
59+
// - Write all logs with importance level of `error` or higher to `error.log`
60+
// (i.e., error, fatal, but not other levels)
6161
//
6262
new winston.transports.File({ filename: 'error.log', level: 'error' }),
63+
//
64+
// - Write all logs with importance level of `info` or higher to `combined.log`
65+
// (i.e., fatal, error, warn, and info, but not trace)
66+
//
6367
new winston.transports.File({ filename: 'combined.log' }),
6468
],
6569
});

0 commit comments

Comments
 (0)