【问题标题】:Otros LogViewer - Searching and sorting by method, class or messageOtros LogViewer - 按方法、类或消息搜索和排序
【发布时间】:2014-07-28 13:41:25
【问题描述】:

我开始使用 Otros Log Viewer 来分析我的 log4j 日志, 但找不到按方法或类名过滤日志的方法,也找不到方法(例如)计算方法“foo”中发生了多少错误。

我会很感激一个不错的解决方案\提示。

谢谢

【问题讨论】:

    标签: log4j otroslogviewer


    【解决方案1】:

    目前类过滤器不支持按方法过滤。你可以实现自己的过滤器,这里是wiki page。

    您可以通过添加<loadExperimentalFeatures>true</loadExperimentalFeatures> 来启用Experimental features 配置。它将启用一些实验性功能,例如查询过滤器。它的工作原理与查询搜索相同。在 wiki 上,您将找到如何构造查询:https://code.google.com/p/otroslogviewer/wiki/SearchEvents。查询可以像这样method==run && class~=my.packet

    您还可以通过“查询模式”使用搜索并使用查询:method==run && class~=my.packet,然后单击“标记所有已找到”并在状态栏消息(如标记为 ...的 233 消息)上。

    【讨论】:

      猜你喜欢
      • 2020-06-20
      • 2010-11-20
      • 1970-01-01
      • 2013-06-07
      • 2011-07-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多