Hi,<div><br></div><div>I have been trying to setup a property 'applicationUrl' which can be evaluated at runtime. I have created the PropertyConfigurer as below:</div><div><br></div><div><div>public class LogbackApplicationURLPropertyDefiner</div>
<div> extends PropertyDefinerBase {</div><div><br></div><div> public String getPropertyValue() {</div><div> LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();</div><div> lc.putProperty();</div>
<div><br></div><div> return ( UserContext.getUserContext() == null</div><div> ? "User context was null, application url could not be determined"</div><div> : UserContext.getUserContext().getApplicationUrl() );</div>
<div> }</div><div>}</div></div><div><br></div><div>and in the xml as:</div><div><br></div><div><define name="applicationUrl" class="com.iblogix.analytic.logging.LogbackApplicationURLPropertyDefiner"/></div>
<div><br></div><div>But it looks like the value is evaluated only once during the logback configruation. What I want is that the value be evaluated everytime it is acessed by someone. Is that possible using what i have right now?</div>
<div><br></div><div>Thanks,</div><div>Basu</div>