שתף באמצעות


Change the Cache Client Logging Level (Windows Server AppFabric Caching)

Windows Server AppFabric 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 (Windows Server AppFabric 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 Windows Server AppFabric Cache Client (XML)
Enable Windows Server AppFabric Local Cache
Windows Server AppFabric Caching Concepts
Developing a Cache Client (Windows Server AppFabric Caching)

Other Resources

Configuring the Cache Client with XML