You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Hitzbleck, Andreas (ext. Mitarbeiter)" <An...@KVB.de> on 2002/08/09 12:53:27 UTC

AW: Antw: Placing of Log files In Tomcat

Hello,

the logfiles will be placed in the bin directory, because
tomcat is started from this directory. If you do not define
the full path to the logfiles, the "home" directory, where
the application was started from, will be used.

Solution: Try to define the whole path to your logfiles:

---------
log4j.appender.common=org.apache.log4j.RollingFileAppender

# NOT
#log4j.appender.common.File=struts.log

# BUT
log4j.appender.common.File=/home/tomcat/logs/struts.log
log4j.appender.common.append=false
log4j.appender.common.MaxFileSize=5MB
log4j.appender.common.MaxBackupIndex=1
log4j.appender.common.layout=org.apache.log4j.PatternLayout
log4j.appender.common.layout.ConversionPattern=[%p,
%d{ISO8601}]%n[%l]%n%m%n%n
---------

Andreas


-----Ursprüngliche Nachricht-----
Von: Frank-Olaf Lohmann [mailto:Lohmann@hhla.de]
Gesendet: Freitag, 9. August 2002 14:39
An: log4j-user@jakarta.apache.org
Betreff: Antw: Placing of Log files In Tomcat


Sorry, haven't read carefully. My comment was regarding the config file.
No hint on LOG FILES from me.

Regards
Frank-Olaf Lohmann

>>> sshetty@powershare.net 09.08.2001  09.43 Uhr >>>
Hello Evrybody,
                           I have a query regarding placing of the log
files, I have a struts application on Tomcat4.0.4 ,Im using Log4J
log4j-1.2.5 , The log files are being placed in the "C:\Program Files\Apache
Tomcat 4.0\bin" folder, is there any setting or way by which I can specify a
custom location instead of the default location?
Kindly illustrate with an example.
Im my logconfig is an XML file.
Is there XML Config file available to show the settings for using a JDBC
appender?
TIA,
regards,
Sudhir



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>