Mantis - Resin
Viewing Issue Advanced Details
4784 minor always 10-03-11 15:03 10-05-11 11:39
chris214  
ferg  
normal  
closed 4.0.23  
fixed  
none    
none 4.0.24  
0004784: EL/log-handler bug not fixed in 4.0.23
Bug 0004753, "EL variables do not work in <log-handler> path attribute values," does not appear to have been fixed in build 4.0.23 as reported.
This may delay our upgrade of Resin 3.0 to Resin 4.0.

Notes
(0005536)
alex   
10-04-11 15:31   
chris, I just tried
  <log-handler name="" level="all" path="log/foo-${serverId}.log"/>
and it worked for me.

What is the expression that does not work for you?
(0005540)
chris214   
10-05-11 08:26   
${serverId} is working now, but ${resin.serverId} is not, whereas that expression does work in the <stdout-log> tag.

Also, variables declared using <resin:set> do not get translated either. For example this does not work:

<resin:set var="myVar" value="someValue"/>
<log-handler name="abc" level="info" path="abc-${myVar}.log" timestamp="[%H:%M:%S.%s]"/>

Once again, this does work in <stdout-log> and <stderr-log> tags.
(0005541)
ferg   
10-05-11 11:39   
env/02sf