> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
> Subject: RE: Regarding log4J creating logs in tomcat logs folder using
> FileAppender
> 
> > but the log files are created under tomcat bin folder
>
> Because you're using a relative path, which should be avoided, since
> you have no control over it.  You can retrieve the Tomcat base path
> from the system property tomcat.base; Tomcat logs are normally in the
> logs directory under tomcat.base.
> 
> > Also let me know how to create a folder under tomcat logs folder.....
> 
> This is a Java, not Tomcat question; use java.io.File.mkdir(), or do it
> from a command line shell.  Note that hard-coding a backslash as a file
> separator makes your code non-portable.

Another point: the location of the log4j output is normally specified in a 
log4j.properties or log4j.xml file to make reconfiguration easier; why are you 
trying to do this programmatically?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to