David Handermann created NIFI-16132:
---------------------------------------

             Summary: Add Component ID to Logging Context for Component Log
                 Key: NIFI-16132
                 URL: https://issues.apache.org/jira/browse/NIFI-16132
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Core Framework
            Reporter: David Handermann
            Assignee: David Handermann


The {{SimpleProcessLogger}} sets temporary attributes in the SLF4J Message 
Diagnostic Context to support supplementary information along with existing log 
messages. The Logging Context includes attributes for the Process Group and 
version information, but does not include the Component ID itself. Although the 
SLF4J Logger includes the Component ID as part of the formatted string, the 
Component ID itself should be provided to the MDC for clear attribution.

In addition to this change, the {{SimpleProcessLogger}} class should be renamed 
to {{StandardComponentLog}}. This name follows common project conventions, 
aligns with the {{ComponentLog}} interface name, and avoids the word {{Simple}} 
as a potential misnomer.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to