Reputation: 11
How can I have both synchronous as well as asynchronous logging using log4j2
.
Any sample implementation if available will help a lot.
Thanks for your time and efforts.
Upvotes: 0
Views: 2302
Reputation: 36754
In the configuration you can have a mixture of <AsyncLogger>
and <Logger>
elements. In addition you can have either <AsyncRoot>
or <Root>
.
Upvotes: 2