Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to disable log4j via configuration file

807588Apr 16 2009 — edited Apr 17 2009
Howdy,

I am using the quartz library which uses log4j, how can I disable log4j in my release version? where can I find a sample configuration file to disable log4j?

TBH i am not sure if its actually running as i am not pointing it to config, i get these warnings:

log4j:WARN No appenders could be found for logger (org.quartz.simpl.SimpleThreadPool).
log4j:WARN Please initialize the log4j system properly.

But I would prefer to just disable it all together (or initialize it correctly and make it do nothing)...so I am looking for how I can accomplish this. I've read over the docs here:

http://logging.apache.org/log4j/1.2/manual.html

They are a bit long winded for what I need to do so I might have missed it, but i am just looking for how to structure a minimal con fig file to properly initialize log4j and prevent it from logging anything
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2009
Added on Apr 16 2009
4 comments
13,492 views