Is there a Java 1.5 varargs API for slf4j yet?
Posted
by Josh
on Stack Overflow
See other posts from Stack Overflow
or by Josh
Published on 2009-12-23T13:54:25Z
Indexed on
2010/06/07
17:22 UTC
Read the original article
Hit count: 220
I want to get rid of this lot...
public void info(String msg);
public void info(String format, Object arg);
public void info(String format, Object arg1, Object arg2);
public void info(String format, Object[] argArray);
...and replace it with this one...
public void info(String format, Object ... args);
...so that my logging syntax doesn't have to change depending on the number of arguments I want to log. There seems to be lots of discussion and work around it, but where is it? Or should I wrap the wrapper that is slf4j?
© Stack Overflow or respective owner