[logback-user] Separate log per thread?

Brett Walker brett.walker at geometryit.com
Tue Sep 11 23:56:46 CEST 2012


Hi PP,

I would recommend the Sifting Appender. Use a marker or other property to discriminate which log file the log messages are directed towards.

Brett


On 12/09/2012, at 1:14 AM, "PixelPusher" <pixelpusher at cox.net> wrote:

> I've been browsing through the documentation, but haven't found a solution for this problem. I have a java web app that takes some input from the currently logged in user and uses it to spawn off a thread to do some work. I need to have that thread generate its own log file with a name that is based on data that the user provided. Is there anything in logback that will help me do this?
> 
> A second issue will be giving the user permission to view the file, but I'll deal with that after I get the file generation working.
> 
> Thanks,
> Thom
> --
> -------------------------------------------------------
>   Man will occasionally stumble over the truth, but most of the time
>   he will pick himself up and continue.              -- Winston Churchill
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user


More information about the Logback-user mailing list