You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Chris Sampson (Jira)" <ji...@apache.org> on 2021/02/18 19:43:00 UTC

[jira] [Commented] (NIFI-7753) ExecuteGroovyScript INFO logs filtered out by default logback.xml

    [ https://issues.apache.org/jira/browse/NIFI-7753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286696#comment-17286696 ] 

Chris Sampson commented on NIFI-7753:
-------------------------------------

After discussion on the linked PR, it was agreed that the best way to resolve this would be a documentation update and leave changing of logging levels to individual users.

Maybe this should be an update to the User Guide and/or Wiki?

> ExecuteGroovyScript INFO logs filtered out by default logback.xml
> -----------------------------------------------------------------
>
>                 Key: NIFI-7753
>                 URL: https://issues.apache.org/jira/browse/NIFI-7753
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.11.4
>            Reporter: Chris Sampson
>            Assignee: Chris Sampson
>            Priority: Minor
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> The default logback.xml included with NiFi (at least the apache/nifi Docker image for 1.11.4) includes the following config:
> {code:xml}
>     <logger name="org.apache.nifi" level="INFO"/>
>     <logger name="org.apache.nifi.processors" level="WARN"/>
>     <logger name="org.apache.nifi.processors.standard.LogAttribute" level="INFO"/>
>     <logger name="org.apache.nifi.processors.standard.LogMessage" level="INFO"/>
> {code}
> This means that calls to `log.info` within an ExecuteGroovyScript are filtered out of the logs by default, which is confusing if one wants to write a script that includes some informational logging (seems a sensible expectation).
> I'd imagine including the following in the `logback.xml` would resolve this:
> {code:xml}
>     <logger name="org.apache.nifi.processors.groovyx.ExecuteGroovyScript" level="INFO"/>
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)