# How to generate a more detailed log?

**URL:** <https://ask.lenses.io/t/how-to-generate-a-more-detailed-log/238>\
**Category:** Lenses\
**Created:** [May 28, 2024, 4:46pm UTC](https://ask.lenses.io/t/how-to-generate-a-more-detailed-log/238 "2024-05-28T16:46:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![grudtnerv](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/grudtnerv/32/101_2.png) [@grudtnerv](https://ask.lenses.io/u/grudtnerv)\
**Post date:** [May 28, 2024, 4:46pm UTC](https://ask.lenses.io/t/how-to-generate-a-more-detailed-log/238/1 "2024-05-28T16:46:33Z")

</div>

Hello. I want to know if it’s possible to generate a log with more details in Lenses to identify issues. What do I need to do?

---

<div class="post-metadata">

**Author:** ![grudtnerv](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/grudtnerv/32/101_2.png) [@grudtnerv](https://ask.lenses.io/u/grudtnerv)\
**Post date:** [May 28, 2024, 4:57pm UTC](https://ask.lenses.io/t/how-to-generate-a-more-detailed-log/238/2 "2024-05-28T16:57:26Z")

</div>

You can change the log level of Lenses to DEBUG in the configuration file. To do this, you can set the LENSES\_LOG4J\_OPTS variable, although it may vary slightly depending on your environment:

- If you are using Lenses on Linux export the environment variable:  
`LENSES_LOG4J_OPTS=-Dlogback.configurationFile=file:[/path/to/]lenses/logback-debug.xml`

- If you are using Lenses on docker set the environment variable:  
`LENSES_LOG4J_OPTS=-Dlogback.configurationFile=file:/opt/lenses/logback-debug.xml`

- If you are using the Helm chart update your Helm repo, and set:

```auto
Lenses:
    logbackXml: logback-debug.xml

```

You can debug the connection with Kafka using the same variable and use the Kafka debug file: “`logback-debug-kafka.xml`”

Cheers!
