tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: How to configure ../logs/catalina.out of tomcat 6.0.14 for per-app (Configure web-app specific log file for sys.out, sys.err )
Date Wed, 26 Aug 2009 14:06:12 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bihag,

On 8/26/2009 5:53 AM, bihag wrote:
> We are using RHEL-5, Tomcat 6.0.14. I am using log4j in all of my webapp.
> 
> We want to configure our log file for web-app specific sys.out, sys.err
> messages which are currently coming in catalina.out.
> 
> please provide some sample to show how/where to configure so we got web-app
> specific log for stdout.

So, you want like webapp1.stdout.log, webapp2.stdout.log, etc.?

That sounds like something very difficult if not impossible to
implement. How would the code know which webapp was logging? The only
option would be to check the classloader(s) of the calling classes, but
that's not guaranteed to work, and it's super slow.

Your best option is to fix your code so it doesn't use stdout and stderr
at all.

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

iEYEARECAAYFAkqVQVQACgkQ9CaO5/Lv0PCKswCdG9n4mLUJO4hRHhJ/OaiNDrBA
LZgAn327ax+USSIo83u7f31T+Z4L+ANw
=uV9H
-----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