Configure Error Logging
When running a cache, error messages can be helpful. These messages can be saved in a log file if required.
Enabling error logging generates FATAL and NORMAL, INFO and DEBUG logs. By default, logging is enabled. In case of an error, it is reported in the application's Event Log in system.
You can manually edit config.ncconf and client.ncconf located at %NCHOME%/config. %NCHOME% is NCache install directory. These files can be edited through any text editor of your choice.
In case you want to update any cache settings please refer to the Update Cache Config section to follow the set of steps.
Using NCache Web Manager
Launch NCache Web Manager by browsing to
<server-ip>:8251(Windows + Linux).
In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache to configure.
Against the cache name, click on View Details.
This opens up the detailed configuration page for the cache. Go to the Advanced Settings tab and click on Options in the left bar.
Check the Enable error logging checkbox.
If you want to enable detailed error logging, check the Enable detailed error logging checkbox. Specify the Log file path if you want to save these logs to a different path.
- Click on Save Changes to apply this configuration to the cache.
Manually Editing NCache Configuration
Enable/disable logs through config.ncconf file located at %NCHOME%\config.
%NCHOME% is NCache install directory. In config.ncconf of EACH server specify the
<logging> tag under the
<cache-config> <cache-settings ...> <logging enable-logs="True" trace-errors="True" trace-debug="False" log-path=""/> </cache-settings> </cache-config>
Repeat this step for all server nodes.
Cache Level Events
General Cache Settings