Book Image

Learning Microsoft Azure

By : Geoff Webber Cross, Geoff Webber-Cross
Book Image

Learning Microsoft Azure

By: Geoff Webber Cross, Geoff Webber-Cross

Overview of this book

Table of Contents (19 chapters)
Learning Microsoft Azure
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Enabling diagnostics


We can configure basic website diagnostic settings through the Server Explorer window in Visual Studio by right-clicking on the website and selecting View Settings:

We can configure Web Server Logging, Detailed Error Messages, Failed Request Tracing, Application Logging (File System only, not storage), and Remote Debugging. This example shows Web Server Logging enabled; to apply changes, click on Save:

The same settings with some more advanced options (which we will cover in more detail in this section) are available in the CONFIGURATION tab in the website's workspace.

Tip

When you swop a staging website for a production website, the configuration (including logging) settings are swopped too, so make sure the staging configuration is correct before swopping.

Working with logfiles

Filesystem logging is the lowest common denominator for all the logging types in an Azure website, whether it's application logging or server diagnostics. We'll look at how we can access and work...