<!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>
Conditions sounds good.<br>
Now I use two different files for standart and debug mode of
application and specify usage in start script using
-Dlogback.configurationFile.<br>
But conditional constructions will allow to make it more simple.<br>
<br>
Best regards, <br>
Aleskey Didik.<br>
<b><br>
</b><br>
<br>
Thorbjørn Ravn Andersen пишет:
<blockquote cite="mid:4A27C1A6.8010801@gmail.com" type="cite">Ceki
Gulcu skrev den 04-06-2009 12:52:
<br>
<blockquote type="cite"><br>
<br>
Joran does not come with conditional support. However, it could be
<br>
added. Assuming the necessary support was there, how would the
<br>
conditional segments look like?
<br>
</blockquote>
<br>
Well, I would either think an
<br>
<br>
<if test="...">
<br>
xml snippet
<br>
</if>
<br>
<br>
construction, where the snippet was only evaluated if the test was
true, or
<br>
<br>
<appender-ref ref="..." if="${enable.appender.FOO}">
<br>
<br>
would be nice. <br>
In any case it would be nice if this mechanism could be used to avoid
constructing unreferenced appenders, as I understand that they are
created when seen in the configuration process.
<br>
<br>
(Oh, and I found that changes in FileAppender options (changing true to
false, etc) are not picked up when reloading default configuration over
JMX).
<br>
<br>
</blockquote>
</body>
</html>