Cleaning noise out of Java stack traces

后端 未结 6 1513
感情败类
感情败类 2020-12-15 17:15

My Java stack traces have a lot of entries that I don\'t care about, showing method invocation going through proxies and Spring reflection methods and stuff like that. It ca

6条回答
  •  悲&欢浪女
    2020-12-15 17:54

    intellij-idea allows customizable stack trace folding, especially useful with dynamic languages.


    (source: jetbrains.com)

    and an Analyzing external stack traces tool.

    I can imagine general tool/filter working on logging framework (like logback or log4j) level. I don't think there is any general support for that, but I think it is a great idea to implement this. I will have a look, maybe it is not that much work.

    UPDATE: I implemented filtering irrelevant stack trace lines in logs for logback, also follow LBCLASSIC-325.

提交回复
热议问题