Skip to content

Commit

Permalink
Merge pull request #44 from shreyas-sriram/fix-readme
Browse files Browse the repository at this point in the history
Fix README.md
  • Loading branch information
hagopj13 authored Dec 2, 2020
2 parents a023908 + d8faff6 commit a8052f6
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 a8052f6

Please sign in to comment.