I use slf4j + logback to register in our application. We used to use jcl + log4j and moved recently.
Due to the large amount of registration in our application, there is a possibility of a full disk full in the working environment. In such cases, we need to stop logging, and the application should work fine. What I found from the Internet is that we need to poll the StatusManager log for such errors. But this will add a logback dependency to the application. For log4j, I found that we can create an Appender that stops registering in such scripts. This will again cause the application to depend on log4j.
Is there a way to configure this with only slf4j, or is there any other mechanism for this?
java logging slf4j logback
Girish
source share