Skip to content

Commit

Permalink
replace extreme destination with async destination
Browse files Browse the repository at this point in the history
`extreme` destination does not exist on `pino` anymore
  • Loading branch information
mksmtn authored Apr 9, 2022
1 parent d5cc46e commit 68b920d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/legacy.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ uses the high speed [`sonic-boom` ⇗](https://github.com/mcollina/sonic-boom) l

#### Extreme Mode

The `extreme` setting does not exist as an option in Pino v5, instead use
a `pino.extreme` destination.
The `extreme` mode does not exist as an option in Pino v5, instead use
[asynchronous logging](/docs/asynchronous.md).

##### v4

Expand All @@ -73,13 +73,13 @@ const fileLogger = require('pino')({extreme: true}, fs.createWriteStream('/log/p
##### v5

```js
const stdoutLogger = require('pino')(pino.extreme())
const stderrLogger = require('pino')(pino.extreme(2))
const fileLogger = require('pino')(pino.extreme('/log/path'))
const stdoutLogger = require('pino')(pino.destination({sync: false, minLength: 4096}))
const stderrLogger = require('pino')(pino.destination({dest: 2, sync: false, minLength: 4096}))
const fileLogger = require('pino')(pino.destination({dest: '/log/path', sync: false, minLength: 4096}))
```

* See [pino.extreme](/docs/api.md#pino-extreme)
* See [Extreme mode](/docs/extreme.md)
* See [`destination` parameter](/docs/api.md#destination)
* See [Asynchronous Logging](/docs/asynchronous.md)


#### Pino CLI is now pino-pretty CLI
Expand Down

0 comments on commit 68b920d

Please sign in to comment.