Configure API Logging
NCache Client Side API Logging is a diagnostic feature that logs all NCache API calls made by an application. This is a configurable logging mechanism that creates several log files. The purpose of API logging is to identify which API and related sequence result in a problem so that these issues can be reproduced easily at the user end.
For further details on API logging, please refer to the Client Side API Logging section. It also explains how to configure API Logging using configurations.
Configure API Logging Using the Management Center
In order to enable and configure API logging using the NCache Management Center, follow the steps below.
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251
on Windows and Linux.From the top right corner, select the . It opens up a new page displaying various settings. From the left tree select Monitor Settings.
This opens a page with the monitor settings. Go to the API Logging section. Update the Maximum Number of Logs which is used to configure the maximum number of logs to be displayed in the monitoring console. In order to use the default settings, select the Use Default option.
- You can specify the time duration for which the API Logging will stay enabled. After this duration, API Logging stops.
- To enable file logging, you need to select the File Logging checkbox. On checking, a textbox appears asking for the path where the log files will be generated. Specify the path or use the default path (C:\Program Files\NCache\log-files\API Logs) by clicking the Use Default button.
- Once all settings are configured, click Save.
See Also
Browse Cache Statistics
Monitor Cache Clusters using NCache Email Alerts
Email Notifications on NCache Events
Monitor NCache using Windows PerfMon Tool