[
https://issues.apache.org/jira/browse/ACCUMULO-3652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14481498#comment-14481498
]
Christopher Tubbs commented on ACCUMULO-3652:
---------------------------------------------
Basically, slf4j allows format strings, using "{}" as a placeholder for a
varargs option. This can result in some slight performance benefits because
slf4j can avoid constructing a string to print when the logging level wouldn't
have required it. It also makes for more readable code.
Example:
replace
{code:java}
log.debug("The value of x was '" + x + "'", exception);
{code}
with
{code:java}
log.debug("The value of x was '{}'", x, exception);
{code}
> Remove string concatenation in log statements where slf4j is used.
> ------------------------------------------------------------------
>
> Key: ACCUMULO-3652
> URL: https://issues.apache.org/jira/browse/ACCUMULO-3652
> Project: Accumulo
> Issue Type: Sub-task
> Components: build
> Affects Versions: 1.7.0
> Reporter: Ed Coleman
> Assignee: Ed Coleman
> Priority: Minor
> Fix For: 1.8.0
>
>
> As a separate task, continue with the conversion to remove log4j
> dependencies, modify log statements where string concatenation is used and
> replace with {} parameter substitution.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)