> Now empty log file is being created. > > I see this error in systemout which i printed too > > [30/5/14 12:23:48:824 UTC] 00000086 R UOW= source=SystemErr org=IBM > prod=WebSphere component=Application Server thread=[WebContainer : 0] > log4j:WARN No appenders could be found for logger > (com.ibm.bcg.consoleUI.action.partners.PartnerCreateAction). > [30/5/14 12:23:48:839 UTC] 00000086 R UOW= source=SystemErr org=IBM > prod=WebSphere component=Application Server thread=[WebContainer : 0] > log4j:WARN Please initialize the log4j system properly. > > > Below is my property file looks like > > log4j.logger.org.apache.struts=DEBUG, R > log4j.appender.R=org.apache.log4j.RollingFileAppender > log4j.appender.R.File=usha.log > log4j.appender.R.MaxFileSize=10MB > log4j.appender.R.MaxBackupIndex=10 > log4j.appender.R.layout=org.apache.log4j.PatternLayout > log4j.appender.R.layout.ConversionPattern=[%d{MM/dd/yy HH:mm:ss}] source=%c > thread=[%t] %m%n > >
What are you doing? Restore the file and just *add* that line. http://logging.apache.org/log4j/1.2/ Regards, Christoph This Email was scanned by Sophos Anti Virus