[jboss-dev] Excessive Logging in AS 5

David M. Lloyd david.lloyd at redhat.com
Mon Mar 16 17:29:12 EDT 2009


Comments inline.

On 03/16/2009 03:46 PM, Brian Stansberry wrote:
> Shelly McGowan wrote:
>>
>> There was a prior discussion on this thread regarding excessive 
>> logging in AS 4.2.3 and 5.
>>
>> Even though Brian provided a configurable option with JBAS-6205, there 
>> was no change to the default from DEBUG to INFO at the time of AS 
>> 5.0.0.GA and now there are FINE messages logged as well.

FINE is equivalent to DEBUG.  (No, this doesn't add anything to the 
discussion, just wanted to make sure everyone knows :)

>> Are there plans to change the default logging levels for the AS 5.1 
>> release?
> 
> I've opened two JIRAs related to this:
> 
> https://jira.jboss.org/jira/browse/JBAS-6629
> https://jira.jboss.org/jira/browse/JBAS-6630
> 
> The first is to use the system property to control the org.jboss 
> category level as well as the server.log threshold; the second is to 
> change to INFO.

Two disadvantages to setting the threshold on the appender, as opposed to 
on the logger (aka category):

1. It makes it impossible to log anything more detailed than that to the 
log (if you want, say, INFO everywhere but TRACE on just one or two loggers).

2. It defeats per-logger level checks.  (Though this is the point where 
Adrian would jump in and say there shouldn't be any code doing per-logger 
level checks for anything less than TRACE, because such code shouldn't 
exist anywhere that gets hit more often than "rarely").

Also, why control just the org.jboss logger?  I'd say, have the property 
just set the level on the root logger instead.

- DML



More information about the jboss-development mailing list