tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Logging with Log4J
Date Fri, 04 Dec 2009 22:08:05 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bart,

On 12/4/2009 10:02 AM, Bart Vandewoestyne wrote:
> I *do* however see log messages appearing in /var/log/syslog, but
> that is not what i want.

That's very weird: you have no configuration whatsoever that would lead
me to believe that your webapp's messages are going to syslog. Are you
sure you don't have something else logging to syslog?

> /var/log/tomcat/mywebapp.log

[snip]

> log4j.rootLogger=DEBUG, cons

See Jeffrey's suggestion in his post.

> 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.

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

iEYEARECAAYFAksZiEUACgkQ9CaO5/Lv0PDuAACgr9akSt+bLoUK66POxEq275/x
IucAoKz1XnMtclmhigcgSajbx9vkg7Lb
=vq1l
-----END PGP SIGNATURE-----

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


Mime
View raw message