Kittu
Kittu

Reputation: 11

Log4j2 synchronous logging

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

Answers (1)

Remko Popma
Remko Popma

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

Related Questions