RE: environment variables for hostname and context name

2009-09-19 Thread Caldarale, Charles R
From: Chris Cheshire [mailto:cheshira...@gmail.com] Subject: Re: environment variables for hostname and context name The tomcat directory is available through the environment somehow, and is accessed as ${catalina.home}. The ${catalina.home} reference is to a system property

environment variables for hostname and context name

2009-09-18 Thread Chris Cheshire
I'm reconfiguring the logging for my tomcat installation (6.0.20) to use logback (instead of log4j) for the server logging so I can split out error messages on a per host basis. I see that catalina.home is exposed as an environment var and usable in the logging configuration file - what about the

RE: environment variables for hostname and context name

2009-09-18 Thread Martin Gainty
Subject: environment variables for hostname and context name From: cheshira...@gmail.com To: users@tomcat.apache.org I'm reconfiguring the logging for my tomcat installation (6.0.20) to use logback (instead of log4j) for the server logging so I can split out error messages on a per host

Re: environment variables for hostname and context name

2009-09-18 Thread Chris Cheshire
I forced that error specifically for this example. That's not the issue. That is an example of what I am trying to log, and it illustrates that the information I need is available at the logging level. On Fri, Sep 18, 2009 at 7:01 PM, Martin Gainty mgai...@hotmail.com wrote:

Re: environment variables for hostname and context name

2009-09-18 Thread Rainer Jung
On 19.09.2009 02:18, Chris Cheshire wrote: I'm reconfiguring the logging for my tomcat installation (6.0.20) to use logback (instead of log4j) for the server logging so I can split out error messages on a per host basis. I see that catalina.home is exposed as an environment var and usable in

Re: environment variables for hostname and context name

2009-09-18 Thread Chris Cheshire
Right. The tomcat directory is available through the environment somehow, and is accessed as ${catalina.home}. From here I can get to the tomcat logs directory. What else is exposed this way? I am hoping that if the host and context are available in the logging message itself, then maybe they