Skip to content

Commit

Permalink
Transports are always asynchronous (#1631)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina authored Jan 24, 2023
1 parent 477682d commit 73470bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/transports.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ now referred to as [Legacy Transports](#legacy-transports).

From Pino v7 and upwards transports can also operate inside a [Worker Thread][worker-thread]
and can be used or configured via the options object passed to `pino` on initialization.
In this case the transports would always operate asynchronously, and logs would be
flushed as quickly as possible (there is nothing to do).

[worker-thread]: https://nodejs.org/dist/latest-v14.x/docs/api/worker_threads.html

Expand Down

0 comments on commit 73470bf

Please sign in to comment.