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 <cou...@casadelgato.com> 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: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org