How to handle disk full errors while logging in logback?
问题 I am using slf4j+logback for logging in our application. Earlier we were using jcl+log4j and moved recently. Due to the high amount of logging in our application, there is a chance of disk being full in production environment. In such cases we need to stop logging and application should work fine. What I found from the web is that we need to poll logback StatusManager for such errors. But this will add a dependency with logback for the application. For log4j, I found that we can create an