View live application logging with the log streaming service

In this unit, you look at how to view a live app log stream, and how live log streams can help during Web app development.

What is live log streaming?

Live log streaming is an easy and efficient way to view live logs for troubleshooting purposes. Live log streaming provides a quick view of all the messages sent to the app logs in the file system, without having to go through the process of locating and opening the logs. To use live logging, you connect to the live log service from the command line, and you can then see text being written to the app’s logs in real time.

What logs can be streamed?

The log streaming service adds a redirect from the file system logs, so that you see the same information that is saved to the log files. So, if you enable verbose logging for ASP.NET Windows apps, for example, the live log stream shows all your logged messages.

Screenshot of Azure portal live log stream pane showing output from the asp logs container.

Typical scenarios for using live logging

Live logging is a useful tool for initial debugging. Real time log messages give you immediate feedback for code or server issues. You can then make a change, redeploy your app, and instantly see the results.

The live log stream connects to a single app instance, so it’s not useful if you have a multi-instance app. Live logging is also of limited use as you scale up your apps. In these scenarios, it’s better to ensure that messages are saved to log files that can be opened and studied offline.

red hat openstack training courses malaysia

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *