logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <Wendy.Sm...@asu.edu>
Subject Specifying log file location when moving from development to prod uction
Date Thu, 03 Jul 2003 17:37:59 GMT

I use Log4j behind Commons Logging in a Struts app running under Tomcat.
I'm happy with everything except one minor irritation when I deploy a new
version of my webapp.

In log4j.properties, I have:
# Configure the name of the logout for the daily appender
# default location when used with Tomcat on Windows 
# is is /path/to/tomcat/bin, so back up one & go into logs

I have to remember to swap which line is commented out when I move the app
to production.  I forget where the log file wants to go naturally (with no
path) on Unix, but it wasn't the same place as on Windows.  Then if you
start Tomcat as an NT service as a coworker of mine does, the log file wants
to go somewhere else entirely, so the relative path doesn't work.

Has anyone got a way to deal with this programmatically, either one setting
that will work for both Windows and Unix, or something that Ant can do,
or... ?

Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message