Cache Server Logging
Another feature provided by NCache is logging different states of clustered, client, and bridge caches into different log files. These log files are created whenever the cache starts and are locked until the cache changes its status to stop or whenever the service stops. Log files encapsulate different levels of information based on logging status.
NCache creates each log file for a particular cache with a different time span. This time initializes as the cache starts and continues until cache status changes from running to stopped. NCache writes log file with a default format that gives the user a readable format. It also logs the thread name whenever an operation is performed by any running thread. NCache presents different stages of logging.
Cache Server Logging Levels
These logging levels are configurable and are described as follows:
INFO Level: The Info level describes some useful information about any operation performed on cache, such as log starting and stopping state of state transfer operations. Info level is disabled by default.
ERROR Level: This log flag gives the cause of errors that are raised during operation execution. This status log is useful in most troubleshooting scenarios such as during the start of cache exception which occurs for joining with its own replica.
CRITICAL Level: This flag logs the critical status of any action or operation on the cache, such as, “Cache exceeds its memory limits”. This log information is useful to optimize cache performance and is the highest priority log among all log-file information.
Detail DEBUG Level: This flag is disabled by default but the user can configure it. This log option prints detailed information about any operations in the cache such as information about each operation like key, and cache items, during state transfer. This log information is useful to analyze cache issues in detail whenever normal debugging is not possible. But this causes performance degradation for cache operations.
NCache also provides logging for client applications and socket level configuration options. These options are disabled by default, but they can be enabled by changing the settings of the app/web files. These logs are created within the default location, i.e., where NCache logs reside. These logs contain information on client operations along with the operation data usage that propagates through the socket server to communicate with a remote server.
See Also
NCache Log Viewer
Performance Counters Logging
Email Notifications on NCache Events