File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
1313Using ` 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
3030logger .emit ({
3131 timestamp: new Date (),
You can’t perform that action at this time.
0 commit comments