How To Use Winston to Log Node.js Applications

Winston is a versatile logging library and a popular logging solution available for Node.js applications. Winston’s features include support for multiple storage options, log levels, log queries, and a built-in profiler. In this tutorial, you will use Winston to log a Node/Express application that you’ll create as part of this process. You’ll also see how to combine Winston with Morgan, another popular HTTP request middleware logger for Node.js.

Ubuntu

20.04

How To Use Winston to Log Node.js Applications on Ubuntu 20.04

Learn How To Use Winston to Log Node.js Applications on Ubuntu 20.04
16.04

How To Use Winston to Log Node.js Applications on Ubuntu 16.04

Learn How To Use Winston to Log Node.js Applications on Ubuntu 16.04

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.