Skip to content

Commit

Permalink
chore(docs): Update README.md w/ usage comments (#2507)
Browse files Browse the repository at this point in the history
- Address issue #2370: Fixed the comments in the usage section
  • Loading branch information
cslee0034 authored Oct 4, 2024
1 parent f5dde86 commit f110f61
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' }),
],
});
Expand Down

0 comments on commit f110f61

Please sign in to comment.