Problem in executing program of log4j
I have written a simple code for accessing the functionality of log4j.jar. It is as follows :
import org.apache.log4j.Logger;
import org.apache.log4j.*;
public class Log4jDemo {
static Logger log = Logger.getLogger("Log4jDemo");
public static void main(String args[]) {
log.debug("This is my debug message.");
log.info("This is my info message.");
log.warn("This is my warn message.");
log.error("This is my error message.");
log.fatal("This is my fatal message.");
}
}
I am able to compile it but getting problem while execution. The errors are listed below :
C:\Program Files\Java\jdk1.5.0\bin>java Log4jDemo
log4j:ERROR JDBCAppender::setSqlhandler(), sqlhandler must be derived of JDBCSql
Handler !
log4j:ERROR JDBCAppender::setSqlhandler(), sqlhandler must be derived of JDBCSql
Handler !
log4j:WARN No appenders could be found for logger (Log4jDemo).
log4j:WARN Please initialize the log4j system properly.
Please help me out...

