[slf4j-dev] [Bug 31] Varargs for Logger methods
bugzilla-daemon at pixie.qos.ch
bugzilla-daemon at pixie.qos.ch
Sat Mar 19 05:04:04 CET 2011
http://bugzilla.slf4j.org/show_bug.cgi?id=31
opdecirkel at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |opdecirkel at gmail.com
--- Comment #87 from opdecirkel at gmail.com 2011-03-19 05:04:02 CET ---
If you need vararg, why not doing adapter:
package util;
public class Util {
public static Object[] va(Object... args) {
return args;
}
}
package foo;
import static util.Util.va;
...
logger.info("a {}, b {}, c c {}", va("A", "B", "C"));
...
--
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the slf4j-dev
mailing list