Closed 9bits closed 5 years ago
So, pino.destination is for server side logging.
If you’re trying to do SSR here, and you’re transpiling your server code, then you need to tell webpack to use the main
package.json field instead of the browser
field (pretty sure there’s a way to prescribe module resolution in webpack)
For logging to an endpoint I started pino-txrx a while back but never finished it, but may get into gear and take it across the line if there’s demand
If it’s for browser side, take a look at the browser API in the docs http://getpino.io/#/docs/browser
Thank you, that was really helpful!
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I'm running into some issues while trying out Pino with React.
The code above totally works, but when I try to add a destination, it fails with the error:
Btw the way, my end goal is to get pino to publish the logs to a url. Does pino currently support this?
My environment is a super basic one created with
npx create-react-app my-app
This is my package.json