[slf4j-user] varargs

Sebastien Pennec sebastien at qos.ch
Mon Nov 13 21:38:41 CET 2006


Hello Zohar and Martin,

We've just had a talk with Ceki about Varargs, JDK 1.5, Life, the Universe and 
Everything and we hope to release a version of SLF4J that supports varargs within 42 
months :)

More seriously, we hope the release to happen around the end of the year.

We expect it to contain two branches, one for JDK 1.4 and one for JDK 1.5.

To answer your questions about SLF4J 1.1, you can check the SLF4J website [1] for 
more information about SLF4J. You might find the FAQ[2] interesting. For information 
about new releases and changes, a SLF4J news page is available[3].

Logback being closely related to SLF4J, you can expect a version of logback to be 
release very shortly after the release of SLF4J making use of the varargs and other 
improvements.

Thanks for using SLF4J and logback :)

Sébastien

[1]http://www.slf4j.org/
[2]http://www.slf4j.org/faq.html
[3]http://www.slf4j.org/news.html

Zohar a écrit :
> Thanks,
> As I've stated - I'm new around here, so I'm not sure what 1.1 is, when it's 
> due, etc. Can you point me somewhere where I can see all that?
> Bottom line - when will I be able to use this API with LogBack?
> 
> Zohar.
> 
> ----- Original Message -----
> From: "Ceki Gülcü" <listid at qos.ch>
> To: "User list for the slf4j project" <user at slf4j.org>
> Sent: Friday, November 10, 2006 00:23
> Subject: Re: [slf4j-user] varargs
> 
> 
> Zohar, Martin,
> 
> I've just done a compatibility review. Changing the Logger interface
> from
> 
> public interface Logger {
>   public void debug(String msg);
>   public void debug(String format, Object arg);
>   public void debug(String format, Object arg1, Object arg2);
>   public void debug(String format, Object[] argArray);
> }
> 
> to:
> 
> public interface Logger {
>   public void debug(String msg);
>   public void debug(String format, Object arg);
>   public void debug(String format, Object arg1, Object arg2);
>   public void debug(String format, Object...);
> }
> 
> The second form requires JDK 1.5.
> 
> The second form still yields good performance for the common
> cases with 0,1 and 2 args. Most importantly. clients compiled against
> the 1st (JDK14) version would continue to run as in the presence of
> the second interface (JDK15).
> 
> At present time, I'd like to release 1.1 without any more significant
> changes. If existing users do not object, in the next SLF4J release, namely
> 1.2, we could bump the JDK requirement to 1.5 instead of 1.4.
> 
> How does that sound?
> 
> 
> At 10:30 PM 11/9/2006, you wrote:
>> Hi Zohar,
>>
>> I had the same request a few weeks ago and created a feature request for
>> it [1].  The main problem seems to be keeping 1.4 support, without
>> creating additional Java 5 classes (many more classes would need to be
>> created as there would need to be numerous per each logging
>> implementation).  I have been considering creating a wrapper class in
>> the meantime.  Hopefully something will be worked out for 1.1.
>>
>> hope that helped,
>> Martin.
>>
>> [1] http://bugzilla.slf4j.org/show_bug.cgi?id=31
>>
>>
>> ----- Original message -----
>> From: "Zohar" <david_fire4 at hotmail.com>
>> To: user at slf4j.org
>> Date: Thu, 9 Nov 2006 10:02:42 +0200
>> Subject: [slf4j-user] varargs
>>
>> Hello,
>> I'm new to SLF4J.
>> Looking at the API I noticed there's no logging methods with varargs. I
>> understand that this is a Java5 feature and SLF4J supports JDK 1.4, but
>> is
>> there a chance to have a version which supports Java5 features? It's
>> just
>> that varargs is so appropriate for logging...
>> Thanks,
>> Zohar.
>>
>> _______________________________________________
>> user mailing list
>> user at slf4j.org
>> http://www.slf4j.org/mailman/listinfo/user
>> _______________________________________________
>> user mailing list
>> user at slf4j.org
>> http://www.slf4j.org/mailman/listinfo/user
> 

-- 
Sébastien Pennec
sebastien at qos.ch

Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch/



More information about the slf4j-user mailing list