Replies: 3 comments
-
/cc @mcollina |
Beta Was this translation helpful? Give feedback.
-
The Node.js specific version of pino does not work in workers for sure due to a number of the dependencies and internal requirements. However, it ought to be possible with a few tweaks here and there to get the browser version of pino working (which is really just a browserified version of the module ... https://getpino.io/#/docs/browser). For the most part this variation just sits on top of |
Beta Was this translation helpful? Give feedback.
-
pino transports make no sense in workerd because in workerd executions are short lived, while transports make sense for long running processes. If you want to craft a pino equivalent to run in workerd, you’d need to spawn a new worker for each transport. Having said that, the browser implementation of pino should work on workerd. |
Beta Was this translation helpful? Give feedback.
-
@calcsam, can you provide more context re: pino transport not being supported in Cloudflare Workers.
Beta Was this translation helpful? Give feedback.
All reactions