-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bart,

On 12/5/2009 7:55 AM, Bart Vandewoestyne wrote:
>>> log4j.appender.myAppender.File=testbart.log
>>
>> I would have done:
>> log4j.appender.myAppender.File=/var/log/tomcat/mywebapp.log
>>
>> Make sure that the user running Tomcat has rights to write to that
>> file/directory.
> 
> OK.  I also figured out that it works if i specify the absolute
> path /var/log/tomcat/mywebapp.log
> 
> I thought that if i only specify the filename, by default it
> would arrive in /var/log/tomcat/ but apparently this is not the
> case.

Why would you think that the file would magically appear in
/var/log/tomcat? There is no default log file location for log4j, nor
for any logging mechanism that I know of. The best you could hope for is
the current working directory of the process, which could be anything.
It's always best to fully-specify path names.

> Anyway, my problem seems solved. All i have to do now is continue
> reading the Log4J docs to better understand and configure my
> logging :-)

Enjoy!

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksec9MACgkQ9CaO5/Lv0PDXMgCeNOq1OiKDb+r+6EenGHwZ1M8m
WiIAoKDCdo3ZBhqIQIVGcsP2/nhVQzYs
=h4Tp
-----END PGP SIGNATURE-----

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

Reply via email to