logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject Re: Pluggable message creation
Date Thu, 06 Dec 2012 14:33:53 GMT
On Thu, Dec 6, 2012 at 3:31 PM, Gary Gregory <garydgregory@gmail.com> wrote:
> On Thu, Dec 6, 2012 at 9:25 AM, Christian Grobmeier <grobmeier@gmail.com>
> wrote:
>>
>> On Thu, Dec 6, 2012 at 3:23 PM, Gary Gregory <garydgregory@gmail.com>
>> wrote:
>> > Well, the support is there but you have to write cumbersome code for it,
>> > which I "hide" in some util class, which uglifies the whole app. It's
>> > hard
>> > to "see" the support, I am not sure it is documented in a well lit
>> > place.
>>
>> Oh. Didn't know. Yes, I think it would be good to make that feature
>> easily accessible
>
>
> You have to say it like this:
>
> log.debug(new StringFormattedMessage("I have %,d %s widgets", num, size));
>
> I want:
>
> log.debug("I have %,d %s widgets", num, size);

+1

Thats much better
Thanks for showing the example


>  G
>>
>>
>>
>>
>> > G
>> >
>> >
>> > On Thu, Dec 6, 2012 at 9:13 AM, Christian Grobmeier
>> > <grobmeier@gmail.com>
>> > wrote:
>> >>
>> >> I think that would address the issues of a few people who complained
>> >> about the missing java formatting support.
>> >>
>> >> On Thu, Dec 6, 2012 at 3:04 PM, Gary Gregory <garydgregory@gmail.com>
>> >> wrote:
>> >> > I craeted https://issues.apache.org/jira/browse/LOG4J2-133 to save
a
>> >> > patch.
>> >> >
>> >> > I'd like to discuss it on the ML here.
>> >> >
>> >> > Thoughts?
>> >> >
>> >> > --
>> >> > E-Mail: garydgregory@gmail.com | ggregory@apache.org
>> >> > JUnit in Action, 2nd Ed: http://bit.ly/ECvg0
>> >> > Spring Batch in Action: http://bit.ly/bqpbCK
>> >> > Blog: http://garygregory.wordpress.com
>> >> > Home: http://garygregory.com/
>> >> > Tweet! http://twitter.com/GaryGregory
>> >>
>> >>
>> >>
>> >> --
>> >> http://www.grobmeier.de
>> >> https://www.timeandbill.de
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>> >> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>> >>
>> >
>> >
>> >
>> > --
>> > E-Mail: garydgregory@gmail.com | ggregory@apache.org
>> > JUnit in Action, 2nd Ed: http://bit.ly/ECvg0
>> > Spring Batch in Action: http://bit.ly/bqpbCK
>> > Blog: http://garygregory.wordpress.com
>> > Home: http://garygregory.com/
>> > Tweet! http://twitter.com/GaryGregory
>>
>>
>>
>> --
>> http://www.grobmeier.de
>> https://www.timeandbill.de
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>>
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> JUnit in Action, 2nd Ed: http://bit.ly/ECvg0
> Spring Batch in Action: http://bit.ly/bqpbCK
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory



--
http://www.grobmeier.de
https://www.timeandbill.de

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message