Thanks Matt, ThreadContext did the trick.
I really appreciate you taking the time out to answer my question.
Regards,
Anhad
On Fri, Jun 9, 2017 at 8:07 AM, Matt Sicker wrote:
> You could add that data to the ThreadContext which would be sent along with
> each log message.
>
> On 9 June 2017 at
Take a look at filters:
https://logging.apache.org/log4j/2.x/manual/filters.html
Also probably helpful if you're trying to break it down into multiple
files:
https://logging.apache.org/log4j/2.x/manual/appenders.html#RoutingAppender
On 12 June 2017 at 05:20, M Sazzadul Hoque
wrote:
> Hello,
>
>
Hello,
My application has several dependencies, some of which have other
dependencies. I am using Log4j2 for logging and wanted to separate
application logs from dependency logs.
Below is my log4j2.xml
%d{MMdd}
%d %level %class %method -
%msg%n