<div dir="ltr">This seems to do the trick. Thanks.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 July 2013 13:12, Jürgen Hofmann <span dir="ltr"><<a href="mailto:hofmann@shiphrah.com" target="_blank">hofmann@shiphrah.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Andreas,<br>
<br>
have a look at SiftingAppender. We use it heavily to log communication from different clients to our servers into distinct files. What you want to achieve should be possible by placing your process-identifier into the MDC and let it be handled by the SiftingAppender accordingly.<br>

<br>
Juergen<br>
<br>
Am 12.07.2013 13:05, schrieb Andreas Johnsen:<br>
<div><div class="h5">> I am developing an application where I need to make separate log files for each time a certain process is run. This process can have multiple instances at once. Preferably I would like a separate method for these types of logs (like info, warning, trace etc) but I would be okay with simply using trace for these logs. I would still like any error or warning that spawns in this process to be logged to the standard error file (global for entire project). I'm trying to configure logback to do this for me.<br>

><br>
> My initial idea was to create my own appender, and somehow figure out which process the log request was coming from, but I ran into a problem actually doing that, since I apparently cannot pass anything useful to the appender in runtime? Or rather I'm not sure how to keep track of and always use the appender that belongs to that particular process.<br>

><br>
> I then proceeded to get lost in the vast number of classes and I am now looking at perhaps modifying a RollingPolicy to do my bidding.<br>
><br>
> Any ideas or clarifications on this topic would be very welcome.<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Logback-user mailing list<br>
> <a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
> <a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br>
><br>
<br>
_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br>
</blockquote></div><br></div>