Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach (var traceListener in
- Trace.Listeners.Cast<TraceListener>().Where(traceListener => traceListener.Name == "AzureDiagnostics"))
- traceListener.TraceOutputOptions = TraceOptions.DateTime | TraceOptions.Callstack | TraceOptions.LogicalOperationStack | TraceOptions.ProcessId | TraceOptions.ThreadId | TraceOptions.Timestamp;
- <system.diagnostics>
- <trace>
- <listeners>
- <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics" traceOutputOptions="DateTime,Timestamp,Callstack,LogicalOperationStack,ProcessId,ThreadId">
- </add>
- </listeners>
- </trace>
- </system.diagnostics>
- Trace.TraceInformation("Thread is sleeping for {0} seconds", CurrentThreadSleepInSeconds);
- [WorkerRole.exe] Thread is sleeping for 4 seconds
Add Comment
Please, Sign In to add comment