Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7753

ExecuteGroovyScript INFO logs filtered out by default logback.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.11.4
    • None
    • Core Framework
    • None

    Description

      The default logback.xml included with NiFi (at least the apache/nifi Docker image for 1.11.4) includes the following config:

          <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"/>
      

      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:

          <logger name="org.apache.nifi.processors.groovyx.ExecuteGroovyScript" level="INFO"/>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Chris S Chris Sampson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h