Hi Bryon, I had used once log4j with Tomcat server.
You can give absolute path for log file in log4j.properties.. like log4j.appender.struts.File=d:/MyApplicationLogs/struts.log so atleast you don't need to find log file . swapnil Patil On 9/28/05, Borislav Sabev <[EMAIL PROTECTED]> wrote: > > Bryon Lape wrote: > > >>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? > > > > > sorry, forgot to tell you > first appender obviously writes in a file - so depends how your server > is started ... > for example if I start the server useing eclipse IDE- files are in the > the home dir of eclipse > if it started from console - in the current dir. > I still don't know how to manage the files to be written in specified > location ... > but the second appender is Console Apennder so it should appear in your > system console. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Swapnil Patil.