PingOne

Enabling debug logging

To help with troubleshooting or monitoring, you can turn on activity logging for PingFederate, the PingAM IdP Adapter, or both.

About this task

You can use logging for troubleshooting and analytics.

Learn more about logging in Enabling debug messages and console logging in the PingFederate documentation.

Steps

  1. Open the <pf_install>/pingfederate/server/default/conf/log4j2.xml file for editing.

  2. To log activity for PingFederate and all adapters:

    1. Find the following section:

      <AsyncRoot level="INFO" includeLocation="false">
      	<!-- <AppenderRef ref="CONSOLE" /> -->
      	<AppenderRef ref="FILE" />
      </AsyncRoot>
    2. Change INFO to DEBUG:

      <AsyncRoot level="DEBUG" includeLocation="false">
      	<!-- <AppenderRef ref="CONSOLE" /> -->
      	<AppenderRef ref="FILE" />
      </AsyncRoot>
    3. Optional: To see the adapter activity in the console, remove the comment tags that surround the CONSOLE line:

      <AsyncRoot level="INFO" includeLocation="false">
      	 <AppenderRef ref="CONSOLE" />
      	<AppenderRef ref="FILE" />
      </AsyncRoot>
  3. To log activity relating to the PingAM IdP Adapter:

    Choose from:

    • To log activity for the PingAM IdP Adapter as well as its HTTPS and component activity, add the following line:

      <Logger name="com.pingidentity.adapters.pingam" level="DEBUG"/>
    • To log activity for the adapter’s HTTPS activity and other components but not for the adapter itself, add the following line:

      <Logger name="com.pingidentity.adapters.pingam.shade" level="DEBUG"/>
    • To log activity for the PingAM IdP Adapter but not its HTTPS or component activity, add the following lines:

      <Logger name="com.pingidentity.adapters.pingam" level="DEBUG"/>
      <Logger name="com.pingidentity.adapters.pingam.shade" level="INFO"/>
  4. Save the file.