Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

In Apache Nifi, where can I find the debug log which I set in code using ComponentLog?

avatar

Hi,

In Apache Nifi 1.0.0, where can I find debug logs which I set in code by using ComponentLog?

final ComponentLog logger = getLogger();

logger.debug("This is a log message!");

I don't find an option to download log file in Nifi Web UI (the corresponding processor's Data provenance option). I also checked the logs folder (nifi-app.log, nifi-user.log, nifi-bootstrap.log).

Can any of you please tell me how to enable the debug logs and in which file it will be logged?

Thank you.

1 ACCEPTED SOLUTION

avatar

Found the answer from this mail thread -

https://mail-archives.apache.org/mod_mbox/nifi-dev/201509.mbox/%3CCAFddr26AEVqnoQ=mWr7DSNDFVrr9NuYy9...

In <nifi root>/conf/logback.xml,

<configuration>

<logger name=fully_qualified_class_name level="DEBUG"/>

</configuration>

View solution in original post

1 REPLY 1

avatar

Found the answer from this mail thread -

https://mail-archives.apache.org/mod_mbox/nifi-dev/201509.mbox/%3CCAFddr26AEVqnoQ=mWr7DSNDFVrr9NuYy9...

In <nifi root>/conf/logback.xml,

<configuration>

<logger name=fully_qualified_class_name level="DEBUG"/>

</configuration>