[slf4j-user] Java 5 version of SLF4J?

Joern Huxhorn jhuxhorn at bpinteractive.com
Thu Apr 24 16:18:22 CEST 2008


Simon Kitching wrote:
> The SLF4J fake-varargs approach, where the api allows 0,1 or 2 params is
> slightly better, as it avoids the "new Object[]" call. But for best
> performance, isDebugEnabled should be used anyway.
> 
> Regards,
> Simon

Hi Simon.

The above isn't the case for logback since calls with explicit arguments 
(instead of argument array) are simply wrapped in an Object[] and 
forwarded to the Object[]-implementation of the method.

Joern.




More information about the slf4j-user mailing list