Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well, what I did is to set up my settings in the WebRole file and the code that I added to my web.config are this configurations</p> <pre><code> &lt;system.diagnostics&gt; &lt;trace&gt; &lt;listeners&gt; &lt;add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics"&gt; &lt;filter type="" /&gt; &lt;/add&gt; &lt;/listeners&gt; &lt;/trace&gt; &lt;/system.diagnostics&gt; &lt;system.webServer&gt; &lt;modules runAllManagedModulesForAllRequests="true" /&gt; &lt;tracing&gt; &lt;traceFailedRequests&gt; &lt;add path="*"&gt; &lt;traceAreas&gt; &lt;add provider="ASP" verbosity="Verbose" /&gt; &lt;add provider="ASPNET" areas="Infrastructure,Module,Page,AppServices" verbosity="Verbose" /&gt; &lt;add provider="ISAPI Extension" verbosity="Verbose" /&gt; &lt;add provider="WWW Server" areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module" verbosity="Verbose" /&gt; &lt;/traceAreas&gt; &lt;failureDefinitions verbosity="Warning" statusCodes="400-599" /&gt; &lt;/add&gt; &lt;/traceFailedRequests&gt; &lt;/tracing&gt; &lt;/system.webServer&gt; </code></pre> <p>And then I implement the method Onstart with this configurations.</p> <pre><code> public override bool OnStart() { String wadConnectionString = "Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString"; CloudStorageAccount cloudStorageAccount = CloudStorageAccount.Parse(RoleEnvironment.GetConfigurationSettingValue(wadConnectionString)); RoleInstanceDiagnosticManager roleInstanceDiagnosticManager = cloudStorageAccount.CreateRoleInstanceDiagnosticManager( RoleEnvironment.DeploymentId, RoleEnvironment.CurrentRoleInstance.Role.Name, RoleEnvironment.CurrentRoleInstance.Id); DiagnosticMonitorConfiguration config = roleInstanceDiagnosticManager.GetCurrentConfiguration(); //Add Events config.WindowsEventLog.DataSources.Add("System!*"); config.WindowsEventLog.DataSources.Add("Application!*"); config.WindowsEventLog.ScheduledTransferLogLevelFilter = LogLevel.Error; config.WindowsEventLog.ScheduledTransferPeriod =TimeSpan.FromSeconds(15.0); config.Logs.ScheduledTransferLogLevelFilter = LogLevel.Verbose; config.Logs.ScheduledTransferPeriod = TimeSpan.FromSeconds(15.0); //transfer the IIS and IIS Failed Request Logs config.Directories.ScheduledTransferPeriod = TimeSpan.FromMinutes(1.0); roleInstanceDiagnosticManager.SetCurrentConfiguration(config); return base.OnStart(); } </code></pre> <p>And also I recommend you to check your ConnectionString on your WerRole settings, it should look something like this: </p> <p>"DefaultEndpointsProtocol=http;AccountName=myAccount;AccountKey=8zTMPlQ8N76cEUNGLYhIvPf8lDmmTnCm7BICX/xtPmdr9vN7elOvZS5N2njtg+tbStoCoe30doN0sCrE1LHcsd=="</p> <p>or </p> <p>"UseDevelopmentStorage=true" </p> <p>If you want to work on your development enviroment</p> <p>Also you can take a look to this site for more details</p> <p><a href="http://robindotnet.wordpress.com/2011/02/16/azure-toolssdk-1-3-and-iis-logging/" rel="nofollow">http://robindotnet.wordpress.com/2011/02/16/azure-toolssdk-1-3-and-iis-logging/</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload