Mantis - Resin
Viewing Issue Advanced Details
1869 minor always 07-11-07 11:04 07-25-07 09:41
ferg  
ferg  
normal  
closed 3.1.1  
fixed  
none    
none 3.1.3  
0001869: resin.root
(rep by Brian Burke)

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?

There are no notes attached to this issue.