---
title: Enabling debug logging
description: To help with troubleshooting or monitoring, you can optionally turn on activity logging for PingFederate, the Google Chrome Enterprise Device Trust IdP Adapter, or both.
component: google
page_id: google:google_chrome_enterprise_integration_kit:pf_google_chrome_enterprise_ik_enabling_debug_logging
canonical_url: https://docs.pingidentity.com/integrations/google/google_chrome_enterprise_integration_kit/pf_google_chrome_enterprise_ik_enabling_debug_logging.html
llms_txt: https://docs.pingidentity.com/integrations/google/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: June 24, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
  choose-from: Choose from:
---

# Enabling debug logging

To help with troubleshooting or monitoring, you can optionally turn on activity logging for PingFederate, the Google Chrome Enterprise Device Trust IdP Adapter, or both.

## About this task

You can use logging for troubleshooting or analytics.

For general information about logging, see [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. Find the following section:

      ```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, remove the comment tags that surround the `CONSOLE` line:

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

3. To log activity relating to the Google Chrome Enterprise Device Trust IdP Adapter:

   ### Choose from:

   * To log activity for the Google Chrome Enterprise Device Trust IdP Adapter as well as its HTTPS and component activity, add the following line:

     ```
     <Logger name="com.pingidentity.adapters.google.chrome.enterprise.device.trust" 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.google.chrome.enterprise.device.trust.shade" level="DEBUG"/>
     ```

   * To log activity for the Google Chrome Enterprise Device Trust IdP Adapter but not its HTTPS or component activity, add the following lines:

     ```
     <Logger name="com.pingidentity.adapters.google.chrome.enterprise.device.trust" level="DEBUG"/>
     <Logger name="com.pingidentity.adapters.google.chrome.enterprise.device.trust.shade" level="INFO"/>
     ```

4. Save the file.
