How do I not log a particular type of Exception in Logback?

前端 未结 3 1368
礼貌的吻别
礼貌的吻别 2020-12-03 14:51

How do I configure Logback to ignore logging on exceptions of a particular type?

3条回答
  •  失恋的感觉
    2020-12-03 15:16

    This is an additional example of the response of @palacsint that apply when the error is not an exception using JaninoEventEvaluator:

    
      
        logger.equals("org.docx4j.fonts.GlyphCheck") && level == ERROR
      
      DENY
    
    

提交回复
热议问题