I'm attempting to configure log4j in a 'flexible' manner for a webapp, 
using the ${server.root} environment variable in the log4j.properties 
file, like this:

log4j.appender.events=org.apache.log4j.DailyRollingFileAppender
log4j.appender.events.DatePattern='.'yyyy-MM-dd
log4j.appender.events.Append=true
log4j.appender.events.File=${resin.root}/logs/events_log.txt

The startup of resin I'm using is: httpd.sh -server-root 
/apps/resin-local -log-directory /apps/resin-local/logs start

According to this page: http://wiki.caucho.com/Command_Line_Options  
setting -server-root on the command line should make ${resin.root} 
available as an environment variable, but it doesn't seem to be 
working.  I have been able to use ${resin.home} in the log4j.propeties 
file, but this isn't ideal as I'm trying to keep /apps/resin completely 
clean of local files, configurations, etc. 

Has anyone else tried to make use of the resin.root environment variable 
in this manner?  Is there a different environment variable I could or 
should be using?

Thanks,
-Brian



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to