Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
### Requiring for Node

```js
const seq = require('seq-logging');
import { Logger } from 'seq-logging';
```

### Requiring for a browser

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

```js
const seq = require('seq-logging/browser');
import { Logger } from 'seq-logging/browser';
```

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

```js
const process = require('process');
const seq = require('seq-logging');
import process from 'process';
import { Logger } from 'seq-logging';

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

logger.emit({
timestamp: new Date(),
Expand Down