[
https://issues.apache.org/jira/browse/MINIFI-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15964345#comment-15964345
]
ASF subversion and git services commented on MINIFI-261:
--------------------------------------------------------
Commit 4a4602a27ba4672422a69f0970ee73e000d60b77 in nifi-minifi-cpp's branch
refs/heads/master from Marc Parisi
[ https://git-wip-us.apache.org/repos/asf?p=nifi-minifi-cpp.git;h=4a4602a ]
MINIFI-261: Allow std::string to be used for log messages
This closes #76.
Signed-off-by: Aldrin Piri <[email protected]>
> Allow std::string to be used in log messages
> --------------------------------------------
>
> Key: MINIFI-261
> URL: https://issues.apache.org/jira/browse/MINIFI-261
> Project: Apache NiFi MiNiFi
> Issue Type: Improvement
> Components: C++
> Reporter: marco polo
> Assignee: marco polo
> Priority: Trivial
>
> In order to log strings, currently you must access the c style string from
> the std::string object
> std::string world = "world";
> logger->log_error("hello %s", world.c_str());
> It would be much cleaner to allow :
> std::string world = "world";
> logger->log_error("hello %s", world);
> The cost is miniscule. On the order of .1 to .01 seconds per 10M log
> messages.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)