Logging abstraction from .NET and PHP

Azure Websites collect diagnostic data from several sources, shipping them on a given storage account or the same virtual filesystem where they reside. We can categorize diagnostic data into the following two groups:

  • Application Diagnostics: Logs coming from the application code
  • Site Diagnostics: Logs coming from several infrastructure sources. They are as follows:
    • Web server logging: Logs for every arriving HTTP request
    • Detailed error messages: HTTP status codes that indicate failures
    • Failed request tracing: A complete IIS trace of components involved in processing requests

In this recipe, we focus on the application diagnostics group, collecting application logs in the virtual filesystem, Table Storage, and Blob ...

Get Microsoft Azure Development Cookbook Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.