Hi Simon,

I can edit the log4j configuration file. 

As per your solution I did the changes and added following entries to
disable the debug level logging for JCS and for rest logger I kept DEBUG
level.

<logger name="org.apache.jcs" additivity="false">
          <level value="ERROR" />
          <appender-ref ref="DEFAULT"/>   
</logger>


And it works.

Thankful for your reply.

Regards
 
Jitendra Takalkar 
-----Original Message-----
From: Horton Simon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 31, 2007 5:11 PM
To: JCS Users List
Subject: RE: How can I disable the logging of JCS?

Hi,

> How can I disable the logging of JCS without changing the level in
log4j.properties file?

Why are you not allowed to update the log4j.properties file?

If you add the following to the log4j.properties file it will tell log4j
to only log error level entries for JCS code, anything else using log4j
will continue to use the root default log level of debug.

log4j.logger.org.apache.jcs=ERROR



Alternatively, you could set the root default LOG4J log level to be
ERROR and then switch only your application code logging to debug, e.g.
if your code resides in a package called com.yourcode

log4j.logger.com.yourcode=DEBUG


Regards,
Simon


-----Original Message-----
From: Takalkar, Jitendra [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 31, 2007 5:28 AM
To: jcs-users@jakarta.apache.org
Subject: How can I disable the logging of JCS?


Hi,

 

I am using JCS for caching and log4j for logging purpose.  The default
level of logger is 'DEBUG' level.

 

I want to disable the debug log generated by JCS, so that I will get the
Debug log generated by application and not by JCS.

 

How can I disable the logging of JCS without changing the level in
log4j.properties file?

 

 

Thanks & Regards

Jitendra Takalkar 

 



This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended recipient,
you are not authorized to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies of this message.

This message and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this message in error please delete it
and any files transmitted with it, after notifying
[EMAIL PROTECTED] 
Any opinions expressed in this message may be those of the author and
not necessarily those of the company. The company accepts no
responsibility for the accuracy or completeness of any information
contained herein. This message is not intended to create legal relations
between the company and the recipient. 
Recipients should please note that messages sent via the Internet may be
intercepted and that caution should therefore be exercised before
dispatching to the company any confidential or sensitive information. 
Mizuho International plc Bracken House, One Friday Street, London EC4M
9JA. TEL. 020 72361090. Wholly owned subsidiary of Mizuho Securities
Co., Ltd. Member of Mizuho Financial Group. Authorised and regulated by
the Financial Services Authority. Member of the London Stock Exchange. 

Registered in England No. 1203696. Registered office as above.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to