Mantis - Resin
Viewing Issue Advanced Details
4753 minor always 09-08-11 13:03 09-09-11 15:35
chris214  
alex  
normal  
closed 4.0.22  
fixed  
none    
none 4.0.23  
0004753: EL variables do not work in <log-handler> path attribute values
For example, if I define this element in resin.xml:

<log-handler name="distribution" level="info"
path="logs/distribution-${resin.serverId}.log" timestamp="[%H:%M:%S.%s] "
format="${log.message}" rollover-period="1D"/>

The ${resin.serverId} variable and others I have tried end up getting replaced with an empty string when the log is created.
The variables DO work in the path attributes of <stdout-log> and <stderr-log> elements.

Notes
(0005498)
alex   
09-09-11 15:35   
env/025m
(0005499)
alex   
09-09-11 15:35   
env/025m