[logback-user] varargs

david_fire4 at hotmail.com david_fire4 at hotmail.com
Wed Nov 8 09:31:48 CET 2006


Hello Sébastien,
Good answer... ;)
Any chance of seeing an slf4j interface with varargs in the near future?

----- Original Message -----
From: "Sebastien Pennec" <sebastien at qos.ch>
To: "logback users list" <logback-user at qos.ch>
Sent: Wednesday, November 08, 2006 10:02
Subject: Re: [logback-user] varargs

> Hello Zohar,
>
> Thanks for using logback! :)
>
> Logback classic natively implements the SLF4J API[1] so that one can 
> readily switch
> back and forth between logback and other logging systems.
> Actually, ch.qos.logback.classic.Logger directly extends org.slf4j.Logger.
>
> Since SLF4J is JDK 1.4 compatible, it cannot use any JDK 1.5 goodies, 
> varargs
> included. Therefore, the part of logback that directly implements SLF4J is 
> bound to
> the same constraint.
>
> Hope this answers your question,
>
> Sébastien
>
> Links:
> [1]: http://www.slf4j.org
>
> david_fire4 at hotmail.com wrote :
>> Hello,
>> I'm new to LogBack and I was wondering why log methods do not have a 
>> varargs version, so that one does not need to construct an array of 
>> parameter objects.
>> Thanks,
>> Zohar.
>> _______________________________________________
>> Logback-user mailing list
>> Logback-user at qos.ch
>> http://qos.ch/mailman/listinfo/logback-user
>>
>
> -- 
> Sébastien Pennec
> sebastien at qos.ch
>
> Logback: The reliable, generic, fast and flexible logging framework for 
> Java.
> http://logback.qos.ch/
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
> 



More information about the Logback-user mailing list