Skip to content

Commit bf0ebfb

Browse files
committed
update example imports in the readme
1 parent 0aeee3f commit bf0ebfb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
### Requiring for Node
66

77
```js
8-
const seq = require('seq-logging');
8+
import { Logger } from 'seq-logging';
99
```
1010

1111
### Requiring for a browser
1212

1313
Using `seq-logging` in a browser context is the same, except the module to import is `seq-logging/browser`.
1414

1515
```js
16-
const seq = require('seq-logging/browser');
16+
import { Logger } from 'seq-logging/browser';
1717
```
1818

1919
### Usage
@@ -22,10 +22,10 @@ A `Logger` is configured with `serverUrl`, and optionally `apiKey` as well as ev
2222
`requestTimeout` can be used to adjust timeout for stalled connections, default: 30s.
2323

2424
```js
25-
const process = require('process');
26-
const seq = require('seq-logging');
25+
import process from 'process';
26+
import { Logger } from 'seq-logging';
2727

28-
const logger = new seq.Logger({ serverUrl: 'http://localhost:5341' });
28+
const logger = new Logger({ serverUrl: 'http://localhost:5341' });
2929

3030
logger.emit({
3131
timestamp: new Date(),

0 commit comments

Comments
 (0)