[slf4j-user] feature request: LOG.debugFormat("This is a number %f", someFloat)

Christoph Pickl Christoph.Pickl at techtalk.at
Mon Feb 13 11:21:07 CET 2012


first of all thanks for the quick reply.
so, performance is important, i agree, but still this feature could be support _additionally_ to the existing solution, couldn't it?!

~christoph

PS: in my previous mail i obviously ment C's printf, not formatf ;)


On Feb 7, 2012, at 5:46 PM, Roman Muntyanu wrote:

> Well, ‘{}’ is “only supported” for performance considerations, current formatting implementation outperforms String.format() at 10 times.
> http://www.slf4j.org/faq.html#logging_performance
> so it’s unlikely to change
>  
> From: slf4j-user-bounces at qos.ch [mailto:slf4j-user-bounces at qos.ch] On Behalf Of Chris Pratt
> Sent: Tuesday, February 07, 2012 18:19 PM
> To: User list for the slf4j project
> Subject: Re: [slf4j-user] feature request: LOG.debugFormat("This is a number %f", someFloat)
>  
> I think you should look at the Onyx project http://code.google.com/p/Anodyzed.
>   (*Chris *)
> 
> On Feb 7, 2012 7:47 AM, "Christoph Pickl" <Christoph.Pickl at techtalk.at> wrote:
> hi guys,
> 
> i came up with an idea:
> you know this String.format("whatever") method? which behaves like C's formatf?
> wouldn't it be nice to be able to use exactly this format string for logging?
> until now, it only supports "{}" for argument replacement...
> 
> what do you think?
> 
> 
> kr, and keep up the good work,
> ~christoph
> 
> _______________________________________________
> slf4j-user mailing list
> slf4j-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/slf4j-user
> _______________________________________________
> slf4j-user mailing list
> slf4j-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/slf4j-user



More information about the slf4j-user mailing list