Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Fix documentation for express logger import
Browse files Browse the repository at this point in the history
  • Loading branch information
horaklukas committed Aug 20, 2019
1 parent 61f5930 commit eab8dab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ All loglevels from warning up (inclusive) - warning, error, fatal - are logged t
Usage:
```js
const express = require('express');
const logger = require('cosmas');

const logger = require('cosmas').default;
// or
import logger from 'cosmas';

const app = express();
// or
Expand Down

0 comments on commit eab8dab

Please sign in to comment.