Hi<div><br></div><div>Groovy is an option and I'm working on the groovy script already but I hoped for a simple solution because I fear that the groovy</div><div>version will be slow. Anyway, thanks for your effort.</div>
<div><br></div><div>Gabor</div><div><br><br><div class="gmail_quote">On Mon, Oct 4, 2010 at 8:49 PM, Ceki Gulcu <span dir="ltr"><<a href="mailto:ceki@qos.ch">ceki@qos.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
You could have parameter values read from MDC if you were using GSiftingAppender, the equivalent of SiftingAppender written in Groovy. Is using Groovy an option for you?<div class="im"><br>
<br>
On 04.10.2010 19:40, Gabor Dolla wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi and thank you for helping me.<br>
<br>
Unfortunatelly this does not answer my question.<br>
<br>
I understand the discriminator object. What I 'd like to achieve is that<br>
when the siftingappender creates a new appender because the<br>
discriminator object is new then the new appender should take certain<br>
parameters (filename, pattern) from mdc.<br>
<br>
Thanks<br>
<br>
Gabor<br>
<br>
<br>
On Mon, Oct 4, 2010 at 7:22 PM, Ceki Gulcu <<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a><br></div><div class="im">
<mailto:<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>>> wrote:<br>
<br>
  On 04.10.2010 13:17, Gabor Dolla wrote:<br>
<br>
    Hi<br>
<br>
    Is it possible to configure the SiftingAppender to use<br>
    parameters from<br>
    MDC other than the discriminator ?<br>
<br>
<br>
  SiftingAppender takes a disriminator object as a configuration<br>
  parameter. In the absence of a discriminator specification,<br>
  SiftingAppender defaults to a discriminator of type<br>
  *MDCBasedDiscriminator* which uses the contents of the MDC for its<br>
  discriminating action. You can choose which key to use, e.g. logger<br>
  of your example.<br>
<br>
  Does this answer your question?<br>
<br>
  --<br>
  Ceki<br>
<br>
  _______________________________________________<br>
  Logback-user mailing list<br></div>
  <a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a> <mailto:<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a>><div class="im"><br>
  <a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
</div></blockquote><div><div></div><div class="h5">
<br>
<br>
_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
</div></div></blockquote></div><br></div>