This project is read-only.
Home | Setup Guide | Deployment Guide | Advanced Features



This is automatically enabled by the command line tool, so no new arguments. It creates following settings in ServiceConfiguration.cscfg file that make it easy to work with the diagnostics for your application. We have the Connection String of your Azure Storage account, the interval you want to Schedule Log Transfers (in seconds), as well as the Log Level that you would like tracked in your logs.

<!-- Windows Azure Storage account to be used for diagnostics -->
<Setting name="WindowsAzureStorageConnectionString" value="UseDevelopmentStorage=true" />
<!-- To tranfer logs periodically to above Windows Azure Storage Account, empty for no transfer -->
<Setting name="ScheduledTransferPeriodInSeconds" value="30" />
<!-- Log Level: Critical | Error | Information | Undefined | Verbose | Warning -->
<Setting name="LogLevel" value="Verbose" /> 


By default this is setup to use the development storage (UseDevelopmentStorage=true) which is running on your local development fabric. When you want to push this to Windows Azure Storage, you will need change the value of this to DefaultEndpointsProtocol=https;AccountName=****;AccountKey=****. So you will have something like this for your production configuration:

<Setting name="WindowsAzureStorageConnectionString" value="DefaultEndpointsProtocol=https;AccountName=****;AccountKey=****" /> 


ScheduledTransferPeriodInSeconds settings will control transfer of log information from PHP application running in Windows Azure to your Windows Azure storage account. If value is “30”, then logs will be transferred every 30 seconds. If this value is empty, then diagnostics will be disabled.

<Setting name="ScheduledTransferPeriodInSeconds" value="" /> 


Allows for filtering logs to be transferred PHP application running in Windows Azure to your Windows Azure storage account. e.g. If the value is Error, then only error log will be transferred.

Use following PHP function to log messages from PHP,

azure_log(AZURE_LOG_INFORMATION, "This is information!");
azure_log(AZURE_LOG_CRITICAL,  "This is error!"); 

Viewing your logs
Once logs have been posted to your Windows Azure Storage account, you will see them in the WADLogsTable:


Last edited May 20, 2010 at 9:33 PM by jeff00seattle, version 3


No comments yet.