Enabling Debug Mode in System Logs

This topic discusses enabling debug mode for application system logs for troubleshooting.

Overview

You can expand Secret Server's logging capabilities to locate additional information regarding an error or to help with troubleshooting an issue.

To enable debug mode for distributed engine log files, see Enabling Debug Mode in DE Log Files

Procedure

To enable debug logging mode:

  1. Log in as an administrator on the application server.

  2. Locate the web-log4net.config file. This file can be found in the web application's root directory. If you cannot locate your web application directory, see How to: Find the Web Application Root. Secret Server is typically located in the *C:\inetpub\wwwroot\ directory, however, this is configurable so the location may be different in your environment.

  3. Open the file in a text editor.

  4. Run a find (Control+ F) command.

  5. Type in log4net and press Enter to locate that section, which is usually at the top.

  6. Locate the commented out <level value="DEBUG" />

  7. Uncomment the line by removing the <!-- and -->.

  8. Locate the <level value="INFO" /> line in the same section.

  9. Comment out the entire line by adding a <!-- and --> around it.

  10. Restart IIS to apply the log configuration change.

    This restarts all websites hosted under IIS
  11. After DEBUG mode is enabled in the system log, you can reproduce the issue, investigate the error, or send the updated logs in with your support case.