Re: Thread specific logging

Gary Gregory <[email protected]>
Newsgroups gmane.comp.jakarta.log4j.user
Message-ID <CACZkXPwuGZFJf=nFSSaYO-Sae8yp2vsVyE9caC+z-m_LwQS_nQ@mail.gmail.com>
Sounds like a job for a routing appender, see
https://logging.apache.org/log4j/2.x/manual/appenders.html#RoutingAppender

Gary



On Sun, Jan 23, 2022, 20:40 John Lussmyer <[email protected]> wrote:

> I have an application where we launch various worked threads - which may
> launch more threads.
> We need to be able to have all the logging from a worker and it's children
> go into a separate file.
> Workers are dynamically created and end after their job is finished.
>
> Any suggestions on how to configure Log4J to do this?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.