[jboss-jira] [JBoss JIRA] (JBLOGGING-110) Add additional vararg variants for primitives
David Lloyd (JIRA)
issues at jboss.org
Fri Aug 29 12:04:00 EDT 2014
[ https://issues.jboss.org/browse/JBLOGGING-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Lloyd updated JBLOGGING-110:
----------------------------------
Description:
There are a lot of methods on Logger. Well I propose we add a bunch more.
We should add variations of debugf and tracef which support the following argument combinations:
{noformat}
String fmt, int arg
String fmt, int arg1, Object arg2
String fmt, int arg1, int arg2
String fmt, int arg1, int arg2, Object arg3
String fmt, int arg1, int arg2, Object... args
String fmt, long arg
String fmt, long arg1, Object arg2
String fmt, long arg1, long arg2
String fmt, long arg1, long arg2, Object arg3
String fmt, long arg1, long arg2, Object... args
{noformat}
The level check would happen before boxing the primitive argument values, preventing the cost of boxing from being incurred for debug/trace messages.
was:
There are a lot of methods on Logger. Well I propose we add a bunch more.
We should add variations of debugf and tracef which support the following argument combinations:
{noformat}
String fmt, int arg
String fmt, int arg1, Object arg2
String fmt, int arg1, int arg2
String fmt, int arg1, int arg2, Object arg3
String fmt, int arg1, int arg2, Object... args
String fmt, long arg
String fmt, long arg1, Object arg2
String fmt, long arg1, long arg2
String fmt, long arg1, long arg2, Object arg3
String fmt, long arg1, long arg2, Object... args
{noformat}
> Add additional vararg variants for primitives
> ---------------------------------------------
>
> Key: JBLOGGING-110
> URL: https://issues.jboss.org/browse/JBLOGGING-110
> Project: JBoss Logging
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: David Lloyd
> Assignee: James Perkins
> Fix For: 3.2.0.Beta2
>
>
> There are a lot of methods on Logger. Well I propose we add a bunch more.
> We should add variations of debugf and tracef which support the following argument combinations:
> {noformat}
> String fmt, int arg
> String fmt, int arg1, Object arg2
> String fmt, int arg1, int arg2
> String fmt, int arg1, int arg2, Object arg3
> String fmt, int arg1, int arg2, Object... args
> String fmt, long arg
> String fmt, long arg1, Object arg2
> String fmt, long arg1, long arg2
> String fmt, long arg1, long arg2, Object arg3
> String fmt, long arg1, long arg2, Object... args
> {noformat}
> The level check would happen before boxing the primitive argument values, preventing the cost of boxing from being incurred for debug/trace messages.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jboss-jira
mailing list