I need to use log4j and I have already imported the .jar, and added the necessary code to my project.

I get the following warnings when trying to run my program:
log4j:WARN No appenders could be found for logger (multithreadsprocessor20.MultiThreader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

After going to that URL I learned that my problem was that log4j.properties and log4j.xml could not be found, and my program isn't making them.

Where should I create those 2 files? (I'm using Netbeans, if that's relevant) Also, what should the content of log4j.xml be? (Already found an example of what should be in the .properties file)

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.