Skip to content

Commit

Permalink
Fix README.md
Browse files Browse the repository at this point in the history
Fix the location of `logger.js` mentioned in README.md
  • Loading branch information
shreyas-sriram committed Dec 2, 2020
1 parent a023908 commit d8faff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,12 @@ If the user making the request does not have the required permissions to access

## Logging

Import the logger from `src/utils/logger.js`. It is using the [Winston](https://github.com/winstonjs/winston) logging library.
Import the logger from `src/config/logger.js`. It is using the [Winston](https://github.com/winstonjs/winston) logging library.

Logging should be done according to the following severity levels (ascending order from most important to least important):

```javascript
const logger = require('<path to src>/utils/logger');
const logger = require('<path to src>/config/logger');

logger.error('message'); // level 0
logger.warn('message'); // level 1
Expand Down

0 comments on commit d8faff6

Please sign in to comment.