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

Improve log messages using processor name

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core Framework
    • Labels:
      None

      Description

      Right now log messages from processors will have the following format:

      2017-05-12 10:43:37,780 INFO [Timer-Driven Process Thread-4] o.a.nifi.processors.standard.InvokeHTTP InvokeHTTP[id=f7ebb153-015b-1000-f590-599786e16340] <log message>
      

      We have twice the information of the class name. Could be useful (in multi-tenant context) to have the processor name. If the processor is named "MyProcessor", we'd have something like:

      2017-05-12 10:43:37,780 INFO [Timer-Driven Process Thread-4] o.a.nifi.processors.standard.InvokeHTTP MyProcessor[id=f7ebb153-015b-1000-f590-599786e16340] <log message>
      

        Activity

        Hide
        pvillard Pierre Villard added a comment -

        Not at the moment AFAIK. I didn't find time to look into it. I believe this is not going to be an easy one based on how logger instances are created.

        Show
        pvillard Pierre Villard added a comment - Not at the moment AFAIK. I didn't find time to look into it. I believe this is not going to be an easy one based on how logger instances are created.
        Hide
        agautam Anmol Prakash Gautam added a comment -

        Hi Pierre Villard - Is there any update or workaround to solve this logging challenge? We are starting to use Nifi and have run into similar challenge with logging where we want to know which pipeline a processor belonged to in case of any error/issue.

        Show
        agautam Anmol Prakash Gautam added a comment - Hi Pierre Villard - Is there any update or workaround to solve this logging challenge? We are starting to use Nifi and have run into similar challenge with logging where we want to know which pipeline a processor belonged to in case of any error/issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            pvillard Pierre Villard
          • Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development