When I run my Azure project I get every 20 seconds or so this message in my output:
Microsoft.WindowsAzure.ServiceRuntime Verbose: 500 : Role instance status check starting Microsoft.WindowsAzure.ServiceRuntime Verbose: 502 : Role instance status check succeeded: Ready
Is there any way to disable these output messages? Like change the log level higher? I prefer to keep the output more clean for important messages like exceptions or binding errors.
This has been bugging me for a while; but I've finally found a solution.
You want to change the Tracing level for the RoleEnviorment from All (which includes verbose); to for example Information.
Add the following code to the beginning of the Role OnStart to switch to Information tracing:
Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.TraceSource.Switch.Level
= SourceLevels.Information;
You should find you no longer get the Role check messages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With