Logging
Important
In case you want to update any cache settings please refer to the Update Cache Config section to follow the set of steps.
License Logging
LicenseLogging
specifies whether this service will log license information for the server or not.
<add key="NCacheServer.LicenseLogging" value="false"/>
Windows Event Logging
Enables/Disables the logging of client connectivity events into Windows Logs. By default these events are disabled.
<add key="NCacheServer.LogClientEvents" value="false"/>
Specifies the level of events which are logged into Windows Logs. There are three levels of events:
- ERROR : Only errors will be logged
- WARNING : Errors and Warnings will be logged
- All : All events will be logged
<add key="NCacheServer.EventLogLevel" value="all"/>
Logging Sliding Expiration
Following four options allows a user to get information about data in cache having sliding expiration. These counters help finding and controlling following tasks.
- How many items are present in cache, being not accessed since given interval or more.
- Log all those keys being not accessed since given interval or more.
- Collect and Log above mentioned data from cache after given interval of time.
EnableCacheLastAccessCount
enables or disables the logging of the DataLastAccessCount.
<add key="NCacheServer.EnableCacheLastAccessCount" value="false"/>
EnableCacheLastAccessCountLogging
Enable Logging of Keys into a log file (created under logs folder). This option would apply only if NCacheServer.EnableCacheLastAccessCount
is set "true".
<add key="NCacheServer.EnableCacheLastAccessCountLogging" value="false"/>
Time interval for a key not been accessed for last given minutes. Value is in minutes. A value of 30 would allow NCache server to collect all those keys that are idle since last 30 or more minutes. This option would apply only if NCacheServer.EnableCacheLastAccessCount
is set "true".
<add key="NCacheServer.CacheLastAccessCountInterval" value="10"/>
Logging interval to allow logging in multiple intervals. Its value is not in minutes. Its value is number of clean intervals after which keys should be logged into file. CleanInterval is specified under Cache's "Policies" tab. If value of this variable is "4" and clean interval is 15(secs), logging would happen after every 60 secs. Interval based logging allows NCache to perform without any performance degradation despite certain information is collected from core components to perform this action .This option would apply only if:
NCacheServer.EnableCacheLastAccessCount
is set "true".NCacheServer.EnableCacheLastAccessCountLogging
is set "true".
<add key="NCacheServer.CacheLastAccessLogInterval" value="40"/>