NCache provides another feature where clustered caches and client caches are logged into different log files. These files are created when a cache starts. These log files keep on logging data until that cache is stopped. Log files encapsulate different level of information based on logging status.
Each log file is created against a particular cache with a different time span. This time span is the time from when the cache is started to the time when the cache is stopped. To give user a readable format, NCache writes these log files with the default format. Also, whenever an operation is performed by a running thread, NCache logs the name of that thread in these files as well.
NCache allows different stages of logging. These logging levels can be manually configured and are described below:
INFO: Info level shows information regarding any operation being performed on cache, for instance logging the start and stop state of state transfer operations. By default, info level is disabled.
ERROR: This log flag gives the cause of errors that occurred during operation execution. This log level is quite useful during troubleshooting, for instance, the start of cache exception which occurs for joining with its own replica.
DEBUG: This log option prints detailed information concerning any operation being carried out in the cache. For example, information of each key and cache items during state transfer. Tnis information is quite useful while doing deep analysis on the cache issues where normal debugging is not possible. By default, this flag is disabled.