You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by QWERTY? <qw...@gmail.com> on 2008/01/31 04:37:33 UTC

Suppress ActiveMQ log4j messages on client

Hi,

We're currently using Hibernate and ActiveMQ, but i want to suppress all the
activeMQ messages comming through log4j

is there an easy way to do this? I can only get it down to debug messages so
far using

log4j.logger.org.apache.activemq=debug


Cheers,
-- 
View this message in context: http://www.nabble.com/Suppress-ActiveMQ-log4j-messages-on-client-tp15197557s2354p15197557.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Suppress ActiveMQ log4j messages on client

Posted by Paul Smith <ps...@aconex.com>.
On 31/01/2008, at 3:54 PM, David Lloyd wrote:

>
> Paul,
>
> Paul Smith wrote:
>> On 31/01/2008, at 2:37 PM, QWERTY? wrote:
>>>
>>> Hi,
>>>
>>> We're currently using Hibernate and ActiveMQ, but i want to  
>>> suppress all the
>>> activeMQ messages comming through log4j
>>>
>>> is there an easy way to do this? I can only get it down to debug  
>>> messages so
>>> far using
>>>
>>> log4j.logger.org.apache.activemq=debug
>> You're going the wrong way, this is configuring log4j to display  
>> _more_ logging than you want.  If you want all activemq logs  
>> disabled try:
>>> log4j.logger.org.apache.activemq=off
>
> Indeed, but I tend to like to set that to FATAL; at least then you  
> don't suddenly get ActiveMQ or whatever it is breaking horribly with  
> no logging.

ERROR's usually where you want it set, the ERROR's are always worth  
having IMHO, but I think he wants all of them suppressed..  Personally  
I have WARN level.

Paul



Re: Suppress ActiveMQ log4j messages on client

Posted by David Lloyd <ll...@adam.com.au>.
Paul,

Paul Smith wrote:
> 
> On 31/01/2008, at 2:37 PM, QWERTY? wrote:
> 
>>
>> Hi,
>>
>> We're currently using Hibernate and ActiveMQ, but i want to suppress 
>> all the
>> activeMQ messages comming through log4j
>>
>> is there an easy way to do this? I can only get it down to debug 
>> messages so
>> far using
>>
>> log4j.logger.org.apache.activemq=debug
> 
> You're going the wrong way, this is configuring log4j to display _more_ 
> logging than you want.  If you want all activemq logs disabled try:
> 
>> log4j.logger.org.apache.activemq=off

Indeed, but I tend to like to set that to FATAL; at least then you don't 
suddenly get ActiveMQ or whatever it is breaking horribly with no logging.

D:S:L

Re: Suppress ActiveMQ log4j messages on client

Posted by Paul Smith <ps...@aconex.com>.
On 31/01/2008, at 2:37 PM, QWERTY? wrote:

>
> Hi,
>
> We're currently using Hibernate and ActiveMQ, but i want to suppress  
> all the
> activeMQ messages comming through log4j
>
> is there an easy way to do this? I can only get it down to debug  
> messages so
> far using
>
> log4j.logger.org.apache.activemq=debug

You're going the wrong way, this is configuring log4j to display  
_more_ logging than you want.  If you want all activemq logs disabled  
try:

> log4j.logger.org.apache.activemq=off