You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Ferenc Gerlits (Jira)" <ji...@apache.org> on 2022/12/13 12:54:00 UTC
[jira] [Updated] (MINIFICPP-1948) Possibility to display in the logs the uid of the component to which the logging relates
[ https://issues.apache.org/jira/browse/MINIFICPP-1948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ferenc Gerlits updated MINIFICPP-1948:
--------------------------------------
Description:
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-13 13:44:04.001] [org::apache::nifi::minifi::core::ProcessSession] [trace] ProcessSession created for TailFile1
[2022-12-13 13:44:04.002] [org::apache::nifi::minifi::core::ProcessSession] [trace] ProcessSession created for TailFile2
[2022-12-13 13:44:04.004] [org::apache::nifi::minifi::processors::TailFile] [debug] Tailing file /var/tmp/nifi-minifi-cpp.test.iVfGaM/test1.txt from 0
[2022-12-13 13:44:04.005] [org::apache::nifi::minifi::processors::TailFile] [debug] Tailing file /var/tmp/nifi-minifi-cpp.test.iVfGaM/test2.txt from 0{code}
and after:
{code:java}
[2022-12-13 13:45:45.330] [org::apache::nifi::minifi::core::ProcessSession] [trace] ProcessSession created for TailFile1
[2022-12-13 13:45:45.330] [org::apache::nifi::minifi::core::ProcessSession] [trace] ProcessSession created for TailFile2
[2022-12-13 13:45:45.330] [org::apache::nifi::minifi::processors::TailFile] [debug] [2438e3c8-015a-1000-79ca-83af40ec1993] Tailing file /var/tmp/nifi-minifi-cpp.test.7OKHeD/test1.txt from 0
[2022-12-13 13:45:45.330] [org::apache::nifi::minifi::processors::TailFile] [debug] [2438e3c8-015a-1000-79ca-83af40ec1994] Tailing file /var/tmp/nifi-minifi-cpp.test.7OKHeD/test2.txt from 0 {code}
was:
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-13 13:44:04.001] [org::apache::nifi::minifi::core::ProcessSession] [trace] ProcessSession created for TailFile1
[2022-12-13 13:44:04.002] [org::apache::nifi::minifi::core::ProcessSession] [trace] ProcessSession created for TailFile2
[2022-12-13 13:44:04.004] [org::apache::nifi::minifi::processors::TailFile] [debug] Tailing file /var/tmp/nifi-minifi-cpp.test.iVfGaM/test1.txt from 0
[2022-12-13 13:44:04.005] [org::apache::nifi::minifi::processors::TailFile] [debug] Tailing file /var/tmp/nifi-minifi-cpp.test.iVfGaM/test2.txt from 0{code}
and after:
{code:java}
[2022-12-13 13:45:45.330] [org::apache::nifi::minifi::core::ProcessSession] [trace] ProcessSession created for TailFile1
[2022-12-13 13:45:45.330] [org::apache::nifi::minifi::core::ProcessSession] [trace] ProcessSession created for TailFile2
[2022-12-13 13:45:45.330] [org::apache::nifi::minifi::processors::TailFile] [debug] [2438e3c8-015a-1000-79ca-83af40ec1993] Tailing file /var/tmp/nifi-minifi-cpp.test.7OKHeD/test1.txt from 0
[2022-12-13 13:45:45.330] [org::apache::nifi::minifi::processors::TailFile] [debug] [2438e3c8-015a-1000-79ca-83af40ec1994] Tailing file /var/tmp/nifi-minifi-cpp.test.7OKHeD/test2.txt from 0 {code}
> 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
>
>
> 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-13 13:44:04.001] [org::apache::nifi::minifi::core::ProcessSession] [trace] ProcessSession created for TailFile1
> [2022-12-13 13:44:04.002] [org::apache::nifi::minifi::core::ProcessSession] [trace] ProcessSession created for TailFile2
> [2022-12-13 13:44:04.004] [org::apache::nifi::minifi::processors::TailFile] [debug] Tailing file /var/tmp/nifi-minifi-cpp.test.iVfGaM/test1.txt from 0
> [2022-12-13 13:44:04.005] [org::apache::nifi::minifi::processors::TailFile] [debug] Tailing file /var/tmp/nifi-minifi-cpp.test.iVfGaM/test2.txt from 0{code}
> and after:
> {code:java}
> [2022-12-13 13:45:45.330] [org::apache::nifi::minifi::core::ProcessSession] [trace] ProcessSession created for TailFile1
> [2022-12-13 13:45:45.330] [org::apache::nifi::minifi::core::ProcessSession] [trace] ProcessSession created for TailFile2
> [2022-12-13 13:45:45.330] [org::apache::nifi::minifi::processors::TailFile] [debug] [2438e3c8-015a-1000-79ca-83af40ec1993] Tailing file /var/tmp/nifi-minifi-cpp.test.7OKHeD/test1.txt from 0
> [2022-12-13 13:45:45.330] [org::apache::nifi::minifi::processors::TailFile] [debug] [2438e3c8-015a-1000-79ca-83af40ec1994] Tailing file /var/tmp/nifi-minifi-cpp.test.7OKHeD/test2.txt from 0 {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)