0

Suppose I start Resin with a command line option (i.e. --log-directory) to specify my custom log directory, and now some xml files want to reference this alternate log directory.

My question is: is there a predefined EL variable (${sth}) for this? Just as ${__DIR__} means current directory.

Thank you so much in advance!

gye
  • 1,374
  • 3
  • 16
  • 27

1 Answers1

0

Unfortunately not. Resin doesn't set a log-directory variable. But you can use the -D option instead and resolve from that.

Incarnate1970th
  • 202
  • 2
  • 7
  • I found myself in a embarrassing situation: I set the alternate log directory, and now I need to use -D option to use/reference it. – gye Feb 20 '15 at 03:08
  • Well, remember that log path can also be resolved from the same -D option. So that way you only specify the parameter once resolving it in resin.xml for log@path and your other uses. – Incarnate1970th Feb 20 '15 at 04:56
  • Im truly sorry to bother you that much. Where in resin.xml (or other files) can I change/specify the directory for **jvm-myapp-0.log** and **watchdog-manager.log**. I couldn't find it. That's why I have to set **--log-directory** variable just for the above two files, while using **-D option** to specify a directory for other log files. My ultimate goal is to put all the log files into the same directory/folder. – gye Feb 20 '15 at 14:26
  • It's configured in log-handler@path line 17 of default configuration in resin 4.0.42. – Incarnate1970th Feb 20 '15 at 19:48