Fix for log4j WARN No appenders could be found for logger, Please initialize the log4j system properly

If you are reading this, you must be using log4j framework and got below error message. log4j:WARN No appenders could be found for logger log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Log4j warning for no appenders will come to console for standalone applications and …

log4j.xml example configurations

We can configure log4j using both property file as well as xml file. Today we will look into log4j.xml example and get the details of it’s configuration. Here is a typical log4j.xml file. If you are using Eclipse, you will notice that it’s not showing you XML element options, this …

Log4j Appenders Tutorial

Log4j Appenders provides configuration for logging such as console, file, database etc. Below image shows the log4j Appender class hierarchy. log4j Appender …

iOS UICollectionView Example Tutorial

In this tutorial we’ll look into iOS UICollectionView component and develop a basic application out of it. iOS UICollectionView UICollectionView is similar …

log4j.properties File Example

In log4j tutorial, we saw how to use log4j xml based configuration. But log4j.xml is verbose, so log4j framework provide option to …

Log4j Tutorial

Log4j is most used logging framework in java applications. In this log4j tutorial, we will go through log4j basics, it’s configuration and …