[jboss-as7-dev] manual way to do logging?
Jason T. Greene
jason.greene at redhat.com
Thu Jun 7 12:41:56 EDT 2012
On 6/7/12 10:28 AM, Andrig Miller wrote:
>
>
> ----- Original Message -----
>> From: "Bill Burke"<bburke at redhat.com>
>> To: "Jason T. Greene"<jason.greene at redhat.com>
>> Cc: "Andrig Miller"<anmiller at redhat.com>, "JBoss AS7 Development"<jboss-as7-dev at lists.jboss.org>
>> Sent: Wednesday, June 6, 2012 4:32:02 PM
>> Subject: Re: [jboss-as7-dev] manual way to do logging?
>>
>>
>>
>> On 6/6/12 5:02 PM, Jason T. Greene wrote:
>>> On 6/6/12 3:43 PM, Andrig Miller wrote:
>>>
>>>> I'm not sure we have to have these discussions over and over and
>>>> over
>>>> again. From my perspective, performance being my primary concern,
>>>> JBoss logging has been awesome, and it meets all the companies
>>>> requirements. I haven't been able to put an exact percentage on it
>>>> yet, but the use of JBoss logging has improved throughput on all
>>>> the
>>>> workloads I have tested, that is for sure.
>>>>
>>
>> The performance gains you are seeing are from not doing stupid things
>> which are pretty easy to avoid. i.e. not doing string concatenations
>> when your logging level isn't triggered.
>>
>
> That's only part of it. The design overall is much better from a performance perspective too. You can still use it poorly and have performance issues, as with anything.
Also, since its specifically designed to do parameter processing for
you, you don't need the extra if statement, since you don't need string
concatenation. You only need it if you need to pass the output of a method.
--
Jason T. Greene
JBoss AS Lead / EAP Platform Architect
JBoss, a division of Red Hat
More information about the jboss-as7-dev
mailing list