Skip to content

Commit

Permalink
Merge pull request #82 from datalust/dev
Browse files Browse the repository at this point in the history
Update of dependencies and support for traceId and spanId
  • Loading branch information
nblumhardt authored Mar 20, 2024
2 parents bf783de + 0cbcadf commit 3cf4883
Show file tree
Hide file tree
Showing 6 changed files with 242 additions and 2,951 deletions.
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
let seq = require('seq-logging');
const seq = require('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
let seq = require('seq-logging/browser');
const seq = require('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
let process = require('process');
let seq = require('seq-logging');
const process = require('process');
const seq = require('seq-logging');

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

logger.emit({
timestamp: new Date(),
Expand Down
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export interface RemoteConfig {
export interface SeqEvent {
timestamp: Date
level?: string
traceId?: string
spanId?: string
messageTemplate?: string
properties?: object
exception?: string
Expand Down
Loading

0 comments on commit 3cf4883

Please sign in to comment.