Skip to content

Commit

Permalink
Fix logger readme destination param in transports (#2055)
Browse files Browse the repository at this point in the history
The params in the Datadog and Logflare example code for the Logger README had incorrect params.

This PR fixes that so there are both options and destination params (not the destination is a part of options).
  • Loading branch information
dthyresson committed Mar 22, 2021
1 parent a32bcf4 commit 9e2cca7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/api/src/logger/README.md
Expand Up @@ -296,8 +296,8 @@ To stream your logs to [Datadog](https://www.datadoghq.com/), you can
// ...

export const logger = createLogger({
options: { ...defaultLoggerOptions,
destination: stream},
options: { ...defaultLoggerOptions },
destination: stream },
})
```

Expand Down Expand Up @@ -326,8 +326,8 @@ export const stream = createWriteStream({
})

export const logger = createLogger({
options: { ...defaultLoggerOptions,
destination: stream},
options: { ...defaultLoggerOptions },
destination: stream },
})
```

Expand Down

0 comments on commit 9e2cca7

Please sign in to comment.