<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello all, <br>
<br>
I need to name my log file as <i>${host-name}.log</i> and the question
is, how can I do it?<br>
In logback.xml I can use properties definition, but it's static, not
dynamical evaluabled. <br>
System properties can't help me to, I can't define host on every
application start.<br>
I can use LoggerContext, but I don't want to have 'compile'
dependencies on logback classes.<br>
<br>
In version 0.9.17 was made possibility to save formatted timestamp in
property. <br>
May be possible to create property evaluator tag, to dynamical define
some properties value?<br>
Something like this:<br>
<br>
&lt;property name="host name" evaluator="org.xxx.PropertyEvaluator"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;parameter name="host type"&gt;value&lt;/parameter&gt;<br>
&lt;/property&gt;<br>
<br>
Evaluator will be called on property initialization with listed
parameters.<br>
I can make necessary patch for logback.<br>
<br>
May be I have said well-known truths :) Sorry and correct me.<br>
<br>
Best regards, <br>
Aleksey Didik<br>
<br>
<br>
<br>
<br>
</body>
</html>