[ 
https://issues.apache.org/jira/browse/MINIFICPP-1948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ferenc Gerlits resolved MINIFICPP-1948.
---------------------------------------
    Resolution: Fixed

> Possibility to display in the logs the uid of the component to which the 
> logging relates
> ----------------------------------------------------------------------------------------
>
>                 Key: MINIFICPP-1948
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1948
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Wish
>    Affects Versions: 0.12.0
>            Reporter: Kondakov Artem
>            Assignee: Ferenc Gerlits
>            Priority: Major
>             Fix For: 0.14.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Is it possible, when logging to spdlog, to add the output of the identifier 
> of the component by which logging occurs, for example like this
> spdlog.pattern=[%Y-%m-%d %H:%M:%S.%e] [%n] [%l] [%uid] %v
> where [%uid] is the output [45b07291-7c57-46f0-ab48-6d4c88386f7f] of the 
> Processor ID or Controller Services ID or Connection ID or Flow Controller ID
>  
> Example before:
> {code:java}
> [2022-12-20 15:52:30.537] 
> [org::apache::nifi::minifi::core::YamlConfiguration] [debug] 
> parseProcessorNode: name => [TailFile1] id => 
> [2438e3c8-015a-1000-79ca-83af40ec1993]
> [2022-12-20 15:52:30.537] 
> [org::apache::nifi::minifi::core::YamlConfiguration] [debug] 
> parseProcessorNode: name => [TailFile2] id => 
> [2438e3c8-015a-1000-79ca-83af40ec1994]
> [2022-12-20 15:52:30.541] [org::apache::nifi::minifi::processors::TailFile] 
> [debug] Tailing file /var/tmp/nifi-minifi-cpp.test.xEQHqu/test1.txt from 0
> [2022-12-20 15:52:30.541] [org::apache::nifi::minifi::processors::TailFile] 
> [debug] Tailing file /var/tmp/nifi-minifi-cpp.test.xEQHqu/test2.txt from 
> 0{code}
> and after:
> {code:java}
> [2022-12-20 16:24:00.160] 
> [org::apache::nifi::minifi::core::YamlConfiguration] [debug] 
> parseProcessorNode: name => [TailFile1] id => 
> [2438e3c8-015a-1000-79ca-83af40ec1993]
> [2022-12-20 16:24:00.160] 
> [org::apache::nifi::minifi::core::YamlConfiguration] [debug] 
> parseProcessorNode: name => [TailFile2] id => 
> [2438e3c8-015a-1000-79ca-83af40ec1994]
> [2022-12-20 16:24:00.164] [org::apache::nifi::minifi::processors::TailFile] 
> [debug] Tailing file /var/tmp/nifi-minifi-cpp.test.NdVxxv/test1.txt from 0 
> (2438e3c8-015a-1000-79ca-83af40ec1993)
> [2022-12-20 16:24:00.164] [org::apache::nifi::minifi::processors::TailFile] 
> [debug] Tailing file /var/tmp/nifi-minifi-cpp.test.NdVxxv/test2.txt from 0 
> (2438e3c8-015a-1000-79ca-83af40ec1994) {code}
>  



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

Reply via email to