# Can I Use Apache's log4j2?

Yes you can — CopyStorm supports log4j2. This article contains the instructions you will need.

## Using log4j2

CopyStorm comes packaged with log4j2 — configuring configuring CopyStorm to use it is a two-step process:

* Select the “Use Apache Logging” option on the [Logging](/reference/configuration-tab/logging.md) configuration section of CopyStorm’s Configuration tab.
  * When checked, CopyStorm will use the Apache Commons Logging system rather than the default.
* Edit the log4j2.properties file in the “lib” subdirectory of the CopyStorm installation to match your logging preferences.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.capstorm.com/frequently-asked-questions/how-does-copystorm-work/can-i-use-apaches-log4j-or-log4j2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
