I didn’t know about the Routing appender. I’ll check it out next week.
Thanks.
> On Apr 3, 2017, at 9:45 AM, Mikael Ståldal wrote:
>
> Have you tried to use RoutingAppender (
> https://logging.apache.org/log4j/2.x/manual/appenders.html#RoutingAppender
>
Have you tried to use RoutingAppender (
https://logging.apache.org/log4j/2.x/manual/appenders.html#RoutingAppender)
together with thread context?
On Mon, Apr 3, 2017 at 5:29 PM, Gerard Gagliano wrote:
> I have a structure as follows: Class A is started via main method Class A
>
I have a structure as follows: Class A is started via main method Class A
starts Class B using ProcessBuilder (via main method of course) Class B starts
Class C using its Constructor
I want each class to have its own log and to use a single log4j2.xml file.
Appender has the following:
Each