[
https://issues.apache.org/jira/browse/NIFI-13421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Stieglitz updated NIFI-13421:
------------------------------------
Description:
There are documented efficiencies of using logging parameters instead of
String.format (one example is the following
[article|https://medium.com/@mohanakrishnakavali/logging-efficiency-in-java-string-concatenation-vs-string-format-efa02055ddae]).
Changes should be made where String.format is only used to format strings (i.e.
%s) but not where there are custom formatting be used (e.g. for decimal numbers
(%f), platform-specific line separator (%n), etc.
was:There are documented efficiencies of using logging parameters instead of
String.format (one example is the following
[article|https://medium.com/@mohanakrishnakavali/logging-efficiency-in-java-string-concatenation-vs-string-format-efa02055ddae])
> Replace String.format in logging statements where only formatting strings
> (%s) with the use of logging parameters ({})
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-13421
> URL: https://issues.apache.org/jira/browse/NIFI-13421
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Daniel Stieglitz
> Assignee: Daniel Stieglitz
> Priority: Major
>
> There are documented efficiencies of using logging parameters instead of
> String.format (one example is the following
> [article|https://medium.com/@mohanakrishnakavali/logging-efficiency-in-java-string-concatenation-vs-string-format-efa02055ddae]).
> Changes should be made where String.format is only used to format strings
> (i.e. %s) but not where there are custom formatting be used (e.g. for decimal
> numbers (%f), platform-specific line separator (%n), etc.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)