You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Rakesh Patel <Ra...@sharepeople.com> on 2005/10/05 18:35:34 UTC

Programmatically controlling log4j

Hi,

How do I do the coding equivalent of:

log4j.logger.org.springframework=OFF
log4j.logger.org.apache.log4j=OFF

Thanks

Rakesh


American Express Investments and American Express Independent Financial Advisers are marketing names for American Express Financial Services Europe Limited, a separate corporation within the American Express group of companies.  American Express Financial Services Europe Limited is authorised and regulated by, and is entered into the register (No. 190853 www.fsa.gov.uk/register/) of, the Financial Services Authority and a member of the London Stock Exchange. Registered in England No. 3614902. Registered address: 230 Blackfriars Road, London SE1 8NW. Vat No. 740 4143 68. 

The information in this email and any attachments is confidential and intended solely for the attention and use of the named addressee(s). It may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority.  If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it, and should notify us immediately.


Re: Programmatically controlling log4j

Posted by James Stauffer <st...@gmail.com>.
You probably don't want to turn them off but you may want to set their
level to error or fatal.

On 10/5/05, Rakesh Patel <Ra...@sharepeople.com> wrote:
> Hi,
>
> How do I do the coding equivalent of:
>
> log4j.logger.org.springframework=OFF
> log4j.logger.org.apache.log4j=OFF
>
> Thanks
>
> Rakesh
>
>
> American Express Investments and American Express Independent Financial Advisers are marketing names for American Express Financial Services Europe Limited, a separate corporation within the American Express group of companies.  American Express Financial Services Europe Limited is authorised and regulated by, and is entered into the register (No. 190853 www.fsa.gov.uk/register/) of, the Financial Services Authority and a member of the London Stock Exchange. Registered in England No. 3614902. Registered address: 230 Blackfriars Road, London SE1 8NW. Vat No. 740 4143 68.
>
> The information in this email and any attachments is confidential and intended solely for the attention and use of the named addressee(s). It may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority.  If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it, and should notify us immediately.
>
>
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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


Re: Programmatically controlling log4j

Posted by Michael A Chase <mc...@ix.netcom.com>.
On Wed, 05 Oct 2005 17:35:34 +0100, Rakesh Patel wrote:

> How do I do the coding equivalent of:
> 
> log4j.logger.org.springframework=OFF
> log4j.logger.org.apache.log4j=OFF

I found lots of good ideas in
http://cvs.apache.org/viewcvs.cgi/logging-log4j-sandbox/src/java/org/apache/log4j/servlet/ConfigurationServlet.java

-- 
Mac :})
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.



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