Disable verbose output of WindowsAzure.ServiceRuntime

When I start an Azure project, I get this message every 20 seconds or so in my release:

Microsoft.WindowsAzure.ServiceRuntime Verbose: 500: checking the status of a role instance Microsoft.WindowsAzure.ServiceRuntime Verbose: 502: checking the status of a role instance: Ready

Is there any way to disable these output messages? How to change log level higher? I prefer to keep the output cleaner for important messages such as exceptions or binding errors.

+8
azure azure-compute-emulator
source share
2 answers

This time undermined me; but I finally found a solution.

You want to change the trace level for RoleEnviorment from All (which includes verbose); for example, for information.

Add the following code at the beginning of the OnStart role to switch to information tracking:

Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.TraceSource.Switch.Level = SourceLevels.Information; 

You should find that you no longer receive role verification messages.

+20
source share

I believe the message is created by an azure agent / emulator. I do not believe that it is (easy) to stop this message from the moment of its release from outside your process. I'm sure there are some hacks somewhere to delete it, but I'm not sure I want to go there.

-2
source share

All Articles