> Bryon Lape wrote: > >>I am looking for good pointers on getting debug logging turned on in >>Struts. I've added debug and detail params to my web.xml file, but I get >>nothing. Do I need log4j? In the Struts Cookbook I've found some things >>on debugging, but it seems very complex to configure. Is this correct? >>Is getting debug logging on a comples issue? >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > I hope this could help you: > 1. get log4j and put it together with other jars of your web project > 2. create a log4j.properties file and put on the root of your web app. > 3. add following lines in log4j.properties > > log4j.rootLogger=error,stdout > log4j.logger.org.apache.struts=debug,struts > > log4j.appender.stdout=org.apache.log4j.ConsoleAppender > log4j.appender.stdout.Target=System.out > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout > log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L > - %m%n > > log4j.appender.struts=org.apache.log4j.RollingFileAppender > log4j.appender.struts.File=struts.log > log4j.appender.struts.MaxFileSize=1000KB > log4j.appender.struts.MaxBackupIndex=5 > log4j.appender.struts.layout=org.apache.log4j.PatternLayout > log4j.appender.struts.layout.ConversionPattern=SRTUST: %d %5p %c{1}:%L - > %m%n > > log4j.appender.struts=org.apache.log4j.ConsoleAppender > log4j.appender.struts.Target=System.out > log4j.appender.struts.layout=org.apache.log4j.PatternLayout > log4j.appender.struts.layout.ConversionPattern=STRUTS: %d{ABSOLUTE} %5p > %c{1}:%L - %m%n >
Ok, I did this, but where is the logging going? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]