Add Basic Logging to Your Node.js App
January 27, 2021
Beginner
10 min.
Modify your Node.js app to add some basic logging, and learn to access the logs via the Cloud Foundry command line interface.
You will learn
- How to add basic logging to an application
- Different ways to access SAP Business Technology Platform, Cloud Foundry environment application logs
- Additional Cloud Foundry CLI commands
Prerequisites
- A text editor (e.g., Notepad, Atom, Sublime)
Step 1: Add some more logging information
Step 2: Delete the existing application
Step 3: Push the updated application
Step 4: Dump application logs
Step 5: Stream application logs