---
title: Enabling debug logging
description: Configure activity logging to troubleshoot how your Akamai Account Protector IdP Adapter instance integrates with PingFederate.
component: akamai
page_id: akamai:troubleshooting:pf-akamai-p9-enabling-debug-logging
canonical_url: https://docs.pingidentity.com/integrations/akamai/troubleshooting/pf-akamai-p9-enabling-debug-logging.html
revdate: March 30, 2026
section_ids:
  steps: Steps
---

# Enabling debug logging

To help with troubleshooting or monitoring, you can turn on activity logging for PingFederate, the Akamai Account Protector IdP Adapter, or both. You can also use logging for analytics.

|   |                        |
| - | ---------------------- |
|   | This task is optional. |

You can find general information about logging in [Enabling debug messages and console logging](https://docs.pingidentity.com/pingfederate/latest/administrators_reference_guide/pf_enabling_debug_message_and_console_logging.html) 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. Go to the following section in the `log4j2.xml` file:

      ```html
      <AsyncRoot level="INFO" includeLocation="false">
      	<!-- <AppenderRef ref="CONSOLE" /> -->
      	<AppenderRef ref="FILE" />
      </AsyncRoot>
      ```

   2. Change `INFO` to `DEBUG`:

      ```html
      <AsyncRoot level="DEBUG" includeLocation="false">
      	<!-- <AppenderRef ref="CONSOLE" /> -->
      	<AppenderRef ref="FILE" />
      </AsyncRoot>
      ```

   3. (Optional) To see the adapter activity in the console as well as the log file, remove the comment tags surrounding the CONSOLE line:

      ```html
      <AsyncRoot level="INFO" includeLocation="false">
      	<AppenderRef ref="CONSOLE" />
      	<AppenderRef ref="FILE" />
      </AsyncRoot>
      ```

3. To log activity relating to the Akamai Account Protector IdP Adapter only, add the following line:

   ```html
   <Logger name ="com.pingidentity.adapters.akamai.account.protector" level="DEBUG"/>
   ```

4. Save the file.
