Struts doesn't create any automatic logging files. If you are getting
additional logs, you have a configuration file loaded to do so.

Paul

On Dec 27, 2007 9:34 AM, Adam Hardy <[EMAIL PROTECTED]>
wrote:

> Hi Raghuveer,
> I don't know why you have struts.log. Perhaps a struts committer knows
> which
> struts example app uses it. But since logging is a relatively limited
> subject, I
> can make several guesses:
>
> - you have another application in your webserver which logs to struts.log
>
> - you have another log4j appender which creates the struts.log
>
> - struts.log might not be current - is it recreated after it is deleted?
>
> - it might be created by JDK logging - search for logging.properties
>
> HTH
> Adam
>
> Raghuveer on 27/12/07 05:02, wrote:
> > Hello,
> >
> >
> >
> > Question 1
> >
> > I have placed "log4j.properties" in WEB-INF of my struts application.
> >
> > With this application logs "test.log" is created in the directory.
> >
> > I found in all the logs were created for java files in package
> > "com.testapp.test" to "test.log"
> >
> >
> >
> > In addition to this there is one more log file created called "struts.
> log"
> >
> > What I need to do to avoid the automatic creation of "struts.log"..i
> mean I
> > want only application related log file created...
> >
> >
> >
> >
> >
> > poc\WEB-INF\src\log4j.properties
> >
> >
> >
> >
> >
> > log4j.logger.com.testapp.test=debug, test
> >
> > log4j.appender.test=org.apache.log4j.RollingFileAppender
> >
> > log4j.appender.test.File=\\\\logsserver\\APP_LOGS\\test\\test.log
> >
> > log4j.appender.test.MaxFileSize=5000KB
> >
> > log4j.appender.test.MaxBackupIndex=10
> >
> > log4j.appender.test.layout=org.apache.log4j.PatternLayout
> >
> > #log4j.appender.test.layout.ConversionPattern=%d~%p~%c~ %m%n
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to