• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Logging Configurations

This page explains the different logging configurations including License Logging, Sliding Expiration Logging, and Feature Usage Logging.

License Logging

The LicenseLogging specifies whether this service will log license information for the server or not.

<add key="NCacheServer.LicenseLogging" value="false" />

Sliding Expiration Logging

The following four options allow a user to get information about data in the cache with the Sliding Expiration. These counters help find and control the following tasks.

  • How many items are present in the cache that haven't been accessed for a given interval or more.
  • Log all keys that have not been accessed for a specified interval or longer.
  • Collect and log the above mentioned data from the cache after a given interval of time.

The EnableCacheLastAccessCount enables or disables the logging of the DataLastAccessCount.

<add key="NCacheServer.EnableCacheLastAccessCount" value="false" />

The EnableCacheLastAccessCountLogging enables the logging of keys into a log file (created under the logs folder). This option only applies if the NCacheServer.EnableCacheLastAccessCount is set true.

<add key="NCacheServer.EnableCacheLastAccessCountLogging" value="false" />

CacheLastAccessCountInterval defines the duration (in minutes) after which a key is considered idle if not accessed. A value of 30 would allow the NCache server to collect all those keys that have been idle for the last 30 or more minutes. This option would apply only if the NCacheServer.EnableCacheLastAccessCount is set to true.

<add key="NCacheServer.CacheLastAccessCountInterval" value="10" />

CacheLastAccessLogInterval defines how frequently logs should be written. Its value is not in minutes. Its value is the number of clean intervals after which keys should be logged into the file. The CleanInterval is specified under the cache's policies tab. For example, if the value of this variable is 4 and the clean interval is 15 (seconds), logging would happen after every 60 seconds. Interval based logging allows NCache to perform without any performance degradation despite certain information being collected from core components to perform this action. This option only applies if:

  • NCacheServer.EnableCacheLastAccessCount is set to true

  • NCacheServer.EnableCacheLastAccessCountLogging is set to true

<add key="NCacheServer.CacheLastAccessLogInterval" value="40" />

Feature Usage Logging

NCache introduces a Feature Usage Tracking mechanism that logs detailed information about all caches running on each node, along with their configurations and the features utilized. This includes data such as the user’s profile status, hardware specifications, caching environment, connected client details, etc.

To enable/disable feature usage logging of all caches at the node level, edit the following tags accordingly.

Enable Feature Usage Logging

Determines whether NCache should collect and log features usage information to the ncache-feature-usage.xml file. Set to true to enable logging.

<add key="NCacheServer.EnableFeatureUsageLogging" value="true"/>

Upload Feature Usage Stats

NCacheServer.UploadFeatureUsageStats when enabled, keeps on reporting feature usage logs, regardless of any performance issues. Set its value to false if you want to stop publishing feature logs in case of any performance bottlenecks.

<add key="NCacheServer.UploadFeatureUsageStats" value="True" />
Note

By default, the app server shares the collected feature usage information with the client once a month.

See Also

Windows Events
Expiration & Eviction
SQL Server Dependency
Logging

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Community
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top