I have my log4j.properties file as below:
log4j.rootLogger=WARN, DebugAppender
#Debug logging
log4j.appender.DebugAppender=org.apache.log4j.RollingFileAppender
log4j.appender.DebugAppender.Threshold=WARN
log4j.appender.DebugAppender.File=activityLog.log
log4j.appender.DebugAppender.MaxFileSize=200KB
log4j.appender.DebugAppender.MaxBackupIndex=5
log4j.appender.DebugAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.DebugAppender.layout.ConversionPattern=%d{DATE} %t - %m%n
The file is added in the classpath and in src/resources folder.... my project is a maven project and I am using springshell technology so that my application runs on a command prompt... everything works perfect but when I execute a particular command in my application it gives me below warning:
log4j:WARN No appenders could be found for logger (com.gedas.rvs.data.net.ClientAuthenticationType).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Can you please help me about what am I doing wrong?