I am using the following code within my project to log debug messages with log4j
private static final Logger LOG = Logger.getLogger(MyClass.class) // ... if(LOG.
Make sure your configuration has below appender...We have used log4j.xml so i am adding from xml