Application logging

Within our websites, we can use the System.Diagnostics.Trace object to help write trace information to the Azure website trace listeners, which write data to the file, table storage, and blob storage. If implemented properly, tracing is useful to help diagnose problems with errors and performance. In normal operations, we can log errors at the Error trace level to minimize storage and performance impact; however, if we experience difficulties, we can raise the LOGGING LEVEL value to show us more detailed information.

Visual Studio's Server Explorer only allows us to configure file logging, but we have full control of the trace listener options in the portal:

Here, we can enable logging to the file, table storage, and blob storage, ...

Get Learning Microsoft Azure 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.