These day I started to migrate a Windows Azure application to a new version of SDK. With this occasion we decided to migrate also the cache service to the new service that is now in preview.
After we configured the cache service we was shocked to see in the trace tables a lot of logs from the cache service. Almost all the actions that are done over Windows Azure Cache Service are logged. It seems that this an issues known by Azure team, but they decided to not fix it yet.
The problem with this is that this is creating a lot of noise in the logs tables and even if we tried to set the log level to minimal from cscfg files, it was without success.
When you set the value to “Off” you will not receive any kind tracing information from this service.
Last updates: It seems that the only way to not be spammed with cache trace data si to set the level to "Off".
After we configured the cache service we was shocked to see in the trace tables a lot of logs from the cache service. Almost all the actions that are done over Windows Azure Cache Service are logged. It seems that this an issues known by Azure team, but they decided to not fix it yet.
The problem with this is that this is creating a lot of noise in the logs tables and even if we tried to set the log level to minimal from cscfg files, it was without success.
<Setting name="Microsoft.WindowsAzure.Plugins.Caching.ClientDiagnosticLevel" value="0" />
When this thing don’t work from configuration, the best thing to do is to go to the code and change it. DataCacheClientManager allow us to change the log level pretty easily using the following two methods:DataCacheClientLogManager.ChangeLogLevel(TraceLevel.Error);
DataCacheClientLogManager.SetSink(DataCacheTraceSink.DiagnosticSink, TraceLevel.Error);
The first method five us the possibility to set the event tracing level for Windows of this services. The second one, as the name says, give us the possibility to set the tracing level of the cache client.When you set the value to “Off” you will not receive any kind tracing information from this service.
Last updates: It seems that the only way to not be spammed with cache trace data si to set the level to "Off".
Comments
Post a Comment