Change the Cache Client Logging Level
Microsoft AppFabric 1.1 for Windows Server provides cache client logging with Event Tracing for Windows (ETW). The following procedure describes how to configure the logging level programmatically on the cache client.
Note
These procedures assume that you have already prepared your development environment and set references to the AppFabric Caching assemblies. For more information, see Preparing the Cache Client Development Environment (AppFabric 1.1 Caching).
To set the logging level programmatically on the cache client
To change the logging level on the cache client, call the ChangeLogLevel method. The following example sets the logging level to TraceLevel.Verbose.
DataCacheClientLogManager.ChangeLogLevel(System.Diagnostics.TraceLevel.Verbose)
DataCacheClientLogManager.ChangeLogLevel(System.Diagnostics.TraceLevel.Verbose);
See Also
Concepts
Get Started with a Cache Client (XML)
Enable AppFabric 1.1 Local Cache
AppFabric Caching Concepts (AppFabric 1.1 Caching)
Developing a Cache Client
Other Resources
Configuring the Cache Client with XML
2012-09-12