How to handle disk full errors while logging in logback?

前端 未结 3 1734
眼角桃花
眼角桃花 2021-02-08 12:36

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

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-08 13:24

    You may try extending the slf4j.Logger class, specifically the info, debug, trace and other methods and manually query for the available space (via File.getUsableSpace() ) before every call.

    That way you will not need any application dependency

提交回复
热议问题