Better Stack Winston transport
Start logging in 3 steps
1. Install
Install the @logtail/winston and @logtail/node npm packages:
2. Set up
Set up the Winston transport:
3. Start logging
Use the Winston logger as usual:
You should see your logs in Better Stack → Live tail.
Winston 3.2.1 or higher is required
Need help?
Please let us know at hello@betterstack.com.
We're happy to help! 🙏
Additional resources
Interested in learning more about using multiple Winston transports and Winston log levels? Check out our Complete Guide to Winston Logging in Node.js.
Common issues
TypeScript error during import
You may encounter TypeScript errors when including the transformer, which can be fixed by modifying the TypeScript config.
For a 'TransportStream' error:
Modify tsconfig.json with:
Thanks @Nightbr for submitting this!