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 On Fri, May 30, 2014 at 4:48 PM, Christoph Nenning < christoph.nenn...@lex-com.net> wrote: > > Hello Paul. > > > > Now I have configured log4j-1.2.13.jar. Below is my log4j.properties > file > > content. > > > > log4j.rootLogger=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 > > > > I get log file names usha.log created m But it doesnt has any struts > > related logging after I perform the action. Just the below content is > > logged. > > > > [05/30/14 09:14:21] > > source=com.ibm.bcg.consoleUI.action.partners.PartnerCreateAction > > thread=[WebContainer : 3] Logging initialized. > > [05/30/14 09:14:21] > > source=com.ibm.bcg.consoleUI.action.partners.PartnerCreateAction > > thread=[WebContainer : 3] Log4jProperties: C:\Program > > Files\ibm\bcghub-distrib\wasND\Profiles\bcgprofile\installedApps > > \wpgCell\BCGConsole.ear\console.war\WEB-INF\lib\log4j.properties > > > > Which are logged by my action class. > > > > Could you please help if I am missing something. > > > > Thanks > > Usha > > > > > > You need a line like this: > > log4j.logger.org.apache.struts=DEBUG > > > Regards, > Christoph > > This Email was scanned by Sophos Anti Virus >