Identity logging

Enable identity logging

  • To enable identity 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 appsettings.json file and open it with a text editor in administrative mode

logging3

  • Locate the following attributes and modify them as follows;
    • LogEnabled - true
    • LogPath - c:\\inetpub\\identityserver\\logs\\idservercore.txt
  • Save the file

If your Identity Server is installed to a different path, make sure you update the LogPath accordingly.

logging4

  • Open Internet Information Services
  • Select the Identity Server website
  • From the right hand menu, click restart

logging9 logging10

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

Read identity logs

  • To read the identity 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

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

logging6

  • Events will be logged with a date and time stamp, according to their type (i.e. DBG, INF, ERR, 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 Identity logging

  • To disable identity 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 appsettings.json file and open it with a text editor in administrative mode

logging3

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

logging4

  • Open Internet Information Services
  • Select the Identity Server website
  • From the right hand menu, click restart

logging9 logging10

  • Logging is now disabled.