---
title: Enabling cookie logging
description: Enable cookie logging, which is an optional feature in the TRACE log level.
component: pingaccess
version: 9.0
page_id: pingaccess:configuring_and_customizing_pingaccess:pa_enabling_cookie_logging
canonical_url: https://docs.pingidentity.com/pingaccess/9.0/configuring_and_customizing_pingaccess/pa_enabling_cookie_logging.html
revdate: June 28, 2023
section_ids:
  steps: Steps
---

# Enabling cookie logging

Enable cookie logging, which is an optional feature in the `TRACE` log level.

## Steps

1. Edit the `conf/log4j2.xml` file and uncomment the following section:

   ```
   <AsyncLogger name="com.pingidentity.pa.core.interceptor.CookieLoggingInterceptor" level="TRACE" additivity="false" includeLocation="false">
        <AppenderRef ref="File"/>
   </AsyncLogger>
   ```

2. Save the file.
