Cache Server Logs
Another feature provided by NCache is logging different states of clustered, client, and local caches into different log files. These log files are created whenever the cache starts and are logged until the cache changes its status to stop. 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 files 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. These logging levels are configurable and are described below.
Cache Server Log Levels
INFO: Info level describes some useful information about any operation performed on cache, such as log starting and stopping state of state transfer operations. The info level is disabled by default.
ERROR: 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.
DEBUG: 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 and drill any hidden issues. But this causes performance degradation for cache operations.
See Also
Monitor NCache Using PerfMon
Windows Event Logs
Cache Client Logs