[
https://issues.apache.org/jira/browse/NIFI-16132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18098045#comment-18098045
]
ASF subversion and git services commented on NIFI-16132:
--------------------------------------------------------
Commit 59cff970ca8b98ee51ae4418cf4de6830fa28c37 in nifi's branch
refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=59cff970ca8 ]
NIFI-16132 Added Component ID to Standard Component Log MDC (#11452)
- Renamed SimpleProcessLogger to StandardComponentLog
- Adjusted constructors to require componentId in both cases
> 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
> Priority: Minor
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)