• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

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.

Important

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 http://localhost:8251 (Windows) or <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.

View Cache Details NCache Web

  • 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.

Error Logging NCache Web Manager

  • 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-settings> tag:

<cache-config>
 <cache-settings ...>
   <logging enable-logs="True" trace-errors="True"
            trace-debug="False" log-path=""/>
 </cache-settings>
</cache-config>
Note

Repeat this step for all server nodes.

See Also

Configure Caches
Configure Clients
Cache Level Events
General Cache Settings

Back to top Copyright © 2017 Alachisoft