Apache Chainsaw 与 Python 和多个选项卡

发布于 2024-09-29 07:31:50 字数 155 浏览 0 评论 0原文

我正在将 Apache Chainsaw 与 python 结合使用(使用 XMLLayout 格式化程序,将日志消息发送到 Chainsaw)

如何使 Chainsaw 显示多个日志选项卡,每个日志源对应一个选项卡? 目前,它将所有消息显示到单个选项卡,无论是哪个进程发送的消息

I am using Apache Chainsaw with python (using the XMLLayout formatter, sending log messages to Chainsaw)

How can I make Chainsaw display multiple log tabs, one for each logging source ?
currently it displays all messages, regardless of which process sent them, to a single tab

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

榆西 2024-10-06 07:31:50

默认情况下,Chainsaw 通过查看每个日志记录事件的“主机名”和“应用程序”属性的值(本质上是 MDC 条目,如果存在)将事件路由到选项卡。

如果您在每个日志记录事件的 XML 表示形式中定义这些属性,Chainsaw 将根据这些值将事件路由到各个选项卡。

您可以将默认选项卡路由表达式从“PROP.hostname - PROP.application”更改为您想要的任何内容 - 只需使用表达式语法来识别在事件路由中使用哪个字段或属性名称(在应用程序范围内)首选项屏幕)。有关表达式语法的更多信息可从“帮助/教程”菜单中获得。

顺便说一下,Chainsaw 有一个更新版本 - 开发人员快照,即将发布 - 可以在此处获得,其中包含大量新功能:http://people.apache.org/~sdeboy

By default, Chainsaw routes events to tabs based by looking at the values of 'hostname' and 'application' properties of each logging event (essentially MDC entries if they exist).

If you define those properties in your XML representation of each logging event, Chainsaw will route events to individual tabs based on those values.

You can change the default tab routing expression from 'PROP.hostname - PROP.application' to anything you'd like - just use the expression syntax to identify which field or property name to use in the routing of events (in the application-wide preferences screen). More info on the expression syntax is available from the Help/Tutorial menu.

By the way, there is an updated version of Chainsaw - a developer snapshot, will be released soon - available here with a ton of new features: http://people.apache.org/~sdeboy

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文