---
title: Logger object reference
description: This object accesses the Logger object.
component: pingaccess
version: 9.0
page_id: pingaccess:reference_guides:pa_logger_object_ref
canonical_url: https://docs.pingidentity.com/pingaccess/9.0/reference_guides/pa_logger_object_ref.html
revdate: February 6, 2023
section_ids:
  configuration: Configuration
  method-summary: Method summary
---

# Logger object reference

This object accesses the Logger object.

## Configuration

PingAccess must be configured to accept logging from Groovy rules.

In the `conf/log4j2.xml` file, uncomment or add the following line to enable debug-level logging from Groovy rules.

```
<AsyncLogger name="GroovyRule" level="DEBUG"/>
```

Uncomment or add the following line to enable info-level logging from the *\<RuleName>* Groovy rule.

```
<AsyncLogger name="GroovyRule.<RuleName>" level="INFO"/>
```

## Method summary

| Method                                          | Description                                                                |
| ----------------------------------------------- | -------------------------------------------------------------------------- |
| `void trace(String format, Object…​ arguments)` | Logs a `TRACE` level message based on the specified format and arguments.  |
| `void debug(String format, Object…​ arguments)` | Logs a `DEBUG` level message based on the specified format and arguments.  |
| `void info(String format, Object…​ arguments)`  | Logs an `INFO` level message based on the specified format and arguments.  |
| `void warn(String format, Object…​ arguments)`  | Logs a `WARN` level message based on the specified format and arguments.   |
| `void error(String format, Object…​ arguments)` | Logs an `ERROR` level message based on the specified format and arguments. |
| `boolean isTraceEnabled()`                      | Checks if the logger instance is enabled for the `TRACE` level.            |
| `boolean isDebugEnabled()`                      | Checks if the logger instance is enabled for the `DEBUG` level.            |
| `boolean isInfoEnabled()`                       | Checks if the logger instance is enabled for the `INFO` level.             |
| `boolean isWarnEnabled()`                       | Checks if the logger instance is enabled for the `WARN` level.             |
| `boolean isErrorEnabled()`                      | Checks if the logger instance is enabled for the `ERROR` level.            |
