<HTML>
<HEAD>
<TITLE>How to place log file in consistent directory?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12pt'>Oxygen-heads: I have a log4j.properties file for testing a plugin that integrates Oxygen and RSuite. I am currently using Mac OS X.<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>log4j.appender.R.File=oxygen-rsuite-plugin.log<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12pt'><BR>
If I use oxygenMac.sh from the command-line, the oxygen-rsuite-plugin.log file shows up in the current directory where I run the command.<BR>
<BR>
If I launch Oxygen from the “open” command on Mac OS X (from an applet in FireFox), then the current working directory is in some random place (that I cannot find).<BR>
<BR>
Log4j permits variable substitution in the log4j.properties, from system properties. Are there sysem properties set by Oxygen for the installation directory or some other place where I can locate the log file so it will be in a consistent place? I would like to be able to specify something like this in the log4j.properties file:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>log4j.appender.R.File=${oxygen.home}/oxygen-rsuite-plugin.log<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12pt'><BR>
Thanks,<BR>
Michael Roberts<BR>
</SPAN></FONT>
</BODY>
</HTML>