tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Subir Sengupta <su...@walmart.com>
Subject RE: SystemErrLogger and SystemOutLogger
Date Sat, 27 Apr 2002 01:15:05 GMT
You can change the directory and file name in catalina.sh like so:

      org.apache.catalina.startup.Bootstrap "$@" start \
      >> "$CATALINA_BASE"/what/ever/directory/whatever.out 2>&1 &

You don't have to change $CATALINA_BASE.  Yes, that would be one more file
your config
script would have to change but AFAIK that's the only way to do it.

Subir

-----Original Message-----
From: Mark R. Diggory [mailto:mdiggory@latte.harvard.edu]
Sent: Friday, April 26, 2002 5:49 PM
To: Tomcat Users List
Subject: Re: SystemErrLogger and SystemOutLogger


Thanks,

Yes, I read this numerous times. But, I'd like something simpler than 
manipulating the dtomcat4 script (which is what I want to avoid). I'd 
like a way to set it in the /etc/tomcat4/conf/tomcat4 preferences or in 
server.xml. I'm not looking for a quick fix to configure this on one 
machine, I need to setup a configuration script that sets up certain 
settings in tomcat for our software installation across many many many 
machines. I want to manipulate as few files as possible. If anything I'd 
like to include a  /etc/tomcat4/conf/tomcat4.conf file that covers 
everything and just copy it over to /etc/tomcat4/conf/tomcat4.

It seems a little confusing to have tomcat configured from 3 different 
locations:

/etc/tomcat4/conf/tomcat4
/usr/bin/dtomcat4
/var/tomcat4/conf/server.xml

One never knows what is a $Param one can set in 
/etc/tomcat4/conf/tomcat4.conf or a hand edit that needs to be done in 
/usr/bin/dtomcat4 vs something that can be configured in the server.xml 
file. Seems a little cleaner organization could be used here? Something 
like environmental settings to startup tomcat going in 
/etc/tomcat4/conf/tomcat4 and configuring behavior of tomcat after 
startup to go in server.xml (which would include location of "all" logs 
and such).I'm confused as to why there are SystemErrLogger and 
SystemOutLogger entries I could set in server.xml and yet I can't adjust 
anything like the directories on these entries.

As well, I'm stuck with "$CATALINA_BASE"/logs/catalina.out as the 
location of  catalina out based on the /usr/bin/dtomcat4. Yes I can 
change $CATALINA_BASE, but I'm stuck with /logs/catalina.out

      org.apache.catalina.startup.Bootstrap "$@" start \
      >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &

what if I wanted to just set the location of my catalina.out to be where 
I configured the other logs to be in my server.xml file ( which is 
/var/log/tomcat/ ), I can't really do it without going in and 
manipulating the dtomcat4 script. I'm not really interested in 
manipulating dtomcat4, I really just want to configure tomcat using 
either /etc/tomcat4/conf/tomcat4 or /var/tomcat4/conf/server.xml.

besides, if I set CATALINA_BASE doesn't that adjust everything else 
dynamic like the location of the webapps directory?

It's great to have the ability to adjust the location of the temp 
directory. I just think we could also use such functionality for the 
logs as well (and not have it dependent on CATALINA_BASE).

My 2 cents,
Mark Diggory


Subir Sengupta wrote:

>By default SystemErrLogger and SystemOutLogger go to logs/catalina.out,
>unless you changed the name of the output target in the bin/catalina.sh
>script from catalina.out to something else.  This is explained in the docs
>http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/logger.html
>
>Hope this helps,
>Subir
>
>-----Original Message-----
>From: Mark Diggory [mailto:mdiggory@latte.harvard.edu]
>Sent: Friday, April 26, 2002 3:22 PM
>To: tomcat-user@jakarta.apache.org
>Subject: SystemErrLogger and SystemOutLogger
>
>
>I was trying to push all tomcats logging up into a different directory
>than /var/tomcat4/logs for our log managment purposes.
>
>I see I can set directory attributes on all FileLoggers but not on the
>default SystemErrLogger and SystemOutLogger.
>
>Is there a simple way I can do this? I like the way the temp directory
>has becaome configurable in /etc/tomcat4/conf/tomcat4.conf. Having this
>in there as well would be cool too.
>
>-Mark Diggory
>
>
>
>--
>To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
>Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>--
>To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
>Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>




--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message