Support Questions
Find answers, ask questions, and share your expertise

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

Solved Go to solution

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

New Contributor

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

Accepted Solutions
Highlighted

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

New Contributor

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
Highlighted

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

New Contributor

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

Don't have an account?