Lesson

Add Logging to a Node.js Application using Winston

Winston is a popular logging library for NodeJS which allows you to customise the output, as well as different logging targets.

Duration
6 min
Access
Free
Transcript
Available

Winston is a popular logging library for NodeJS which allows you to customise the output, as well as different logging targets.

This lesson covers configuring Winston to run with different levels depending on a Node environment variable as well as enhancing the log output to include the filename and line number the log message originates from.