Install the @logtail/bunyan and @logtail/node npm packages:
Set up the Bunyan stream:
Use the Bunyan logger as usual:
You should see your logs in Better Stack → Live tail.
Please let us know at hello@betterstack.com.
We're happy to help! 🙏
Looking for a different JavaScript logging solution? Check out Better Stack clients for JavaScript and Node.js.
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.