Category Archives: log4j

Rename log4j.properties

Some time the need arises to have our log4j.properties with different name. By default, if no other configuration is given, log4j will search your classpath for a 'log4j.properties' file. Now to use your own named log4j property add the following … Continue reading

Posted in HowTo, Java, log4j | Leave a comment

Log4j errors : log4j:WARN No appenders could be found for logger, log4j:WARN Please initialize the log4j system properly

This is a very common problem, it occurs when log4j.properties not found in classpath. Create a file called log4j.properties. Place it in the root folder where your java classes are found. When log4j initializes, it will look for a file … Continue reading

Posted in Java, log4j | Leave a comment