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.
Procedure
To enable debug logging mode:
-
Log in as an administrator on the application server.
-
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.
-
Open the file in a text editor.
-
Run a find (Control+ F) command.
-
Type in log4net and press Enter to locate that section, which is usually at the top.
-
Locate the commented out <level value="DEBUG" />
-
Uncomment the line by removing the <!-- and -->.
-
Locate the <level value="INFO" /> line in the same section.
-
Comment out the entire line by adding a <!-- and --> around it.
-
Restart IIS to apply the log configuration change.
This restarts all websites hosted under IIS -
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.