Application logging

Enable application logging

  • To enable application logging and view logs, open Internet Information Services on the server running Identity Server
  • Right click on the Identity Server webite, and click ‘Explore’

logging1

  • Check whether a sub folder called ‘logs’ exists. If it does not, create it.

logging2

  • Find the web.config file and open it with a text editor in administrative mode

logging3

  • Locate the following attributes and modify them as follows;
    • stdoutLogEnabled - true
    • stdoutLogFile - .\logs\stout
  • Save the file

logging4

  • You should now reproduce the problem in Identity Server so the appropriate error is logged.

Read application logs

  • To read the application log, open Internet Information Services on the server running Identity Server
  • Right click on the Identity Server webite, and click ‘Explore’

logging1

  • Open the logs folder

logging5

  • Application logs will start with the prefix stout and end with a date time stamp.
  • If there are multiple files starting with stout, order them and find the most recent file.
  • Open this file in a text editor.

logging6

  • Events will be logged according to their type (i.e. info, error, etc) and the action that took place.
  • Look for any errors and read the associated exception, it may provide hints as to what the problem is.
  • If you are unsure as to how to interpret the error, please contact helpdesk@perspectiveilm.com for assistance.

logging7

Disable application logging

  • To disable application logging and view logs, open Internet Information Services on the server running Identity Server
  • Right click on the Identity Server webite, and click ‘Explore’

logging1

  • Find the web.config file and open it with a text editor in administrative mode

logging3

  • Locate the following attributes and modify them as follows;
    • stdoutLogEnabled - false
  • Save the file

logging4

  • Logging is now disabled.