[ https://issues.apache.org/jira/browse/MINIFI-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15964342#comment-15964342 ]
ASF GitHub Bot commented on MINIFI-261: --------------------------------------- Github user apiri commented on the issue: https://github.com/apache/nifi-minifi-cpp/pull/76 changes and tests look good. definitely like the convenience. will get this merged. > 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)