'Make Log4J2 Async Logger library log messages whenever it drops any log event

I am working on enabling Async logger with our service. We have observed that whenever there is an excessive logging, async logger starts blocking application threads. After going through docs of Async logger, we came to know that it can be avoided by dropping log message event.

My query is, does log4j library logs any error message whenever a log message event gets dropped? Or if not, is there is a way to configure it to log such error messages.

EDIT: I figured out I need to enable internal logging of log4j to log this statement. Now the issue I am facing is logging in our system is enabled using PropertyConfigurator. But I am unable to find a way to enable just WARN level logs for PropertyConfigurator. Any help?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source