---
title: Configuring class or package log levels
description: Use the log4j2.xml file to configure the log level for a class or package.
component: pingaccess
version: 7.2
page_id: pingaccess:configuring_and_customizing_pingaccess:pa_configuring_class_or_package_log_levels
canonical_url: https://docs.pingidentity.com/pingaccess/7.2/configuring_and_customizing_pingaccess/pa_configuring_class_or_package_log_levels.html
revdate: June 27, 2023
section_ids:
  steps: Steps
  example: Example:
  example-2: Example:
---

# Configuring class or package log levels

Use the `log4j2.xml` file to configure the log level for a class or package.

## Steps

1. Open `conf/log4j2.xml` in a text editor.

   Class or package loggers are defined in the `<AsyncLogger>``name` attribute. For example, the following line enables cookie logging:

   ### Example:

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

2. Set the `level` value in the `<AsyncLogger>` element to one of the following values: `OFF`, `FATAL`, `ERROR`, `WARN`, `INFO`, `DEBUG`, or `TRACE`.

   ### Example:

   To apply `TRACE` level logging for the `com.pingidentity` package, locate the following line:

   ```
   <AsyncLogger name="com.pingidentity" level="DEBUG" additivity="false" includeLocation="false">
   ```

   Change it to:

   ```
   <AsyncLogger name="com.pingidentity" level="TRACE" additivity="false" includeLocation="false">
   ```

3. Save the file.
