Java StackTrace 编辑器或 GUI

发布于 2024-07-30 09:39:07 字数 142 浏览 2 评论 0原文

我的 java 应用程序正在将堆栈跟踪转储到日志文件中。 然而,解决方案中心想要一种“更简单”的方式来理解生成的堆栈跟踪。

除了用 Java 培训他们之外,是否有堆栈跟踪编辑器或 GUI 可以让他们的生活更轻松?

非常感谢!

My java app is dumping stacktrace to a log file.
However, the solution center wants an "easier" way to understand the generated stacktrace.

Other than training them in java, is there a stacktrace editor or gui that could make their life easier?

Thanks so much in advance!

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

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

发布评论

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

评论(2

旧伤还要旧人安 2024-08-06 09:39:08

您可以考虑有两个日志文件。 一个包含您的调试信息,另一个包含解决方案中心的信息。 他们可能仅仅对“RuntimeException:天塌下来”这一行感到满意,让他们确定这是意外的事情,应该交给开发人员。

您可能还希望有一个外部 try-catch 结构来捕获所有 Throwables 并尝试为解决方案中心提供信息。 例如,对于 SQLException,“这是数据库的错误,请确保其正常工作,重新启动应用程序并向开发人员提出票证。”

换句话说,以清晰的语言预先提供尽可能多的有关情况的信息。 这可能是一两天的良好团队努力。

You may consider having two logfiles. One containing debug information for you, and another containing information for the solution center. They may be satisfied just with the "RuntimeException: The Sky Is Falling" line to allow them to determine that this is something unexpected that should go to the developer.

You may also want to have an outer try-catch construction which catches all Throwables and try to provide information for the solution center. E.g. for an SQLException, "This is an error with the database, ensure it works properly, restart the applciation and raise a ticket with the developers."

In other words, provide as much information about the situation as you can up front, and in a clear language. This might be a good team effort for a day or two.

酷到爆炸 2024-08-06 09:39:08

您是否能够修改代码以生成更清晰、用户可读的错误?

Are you able to modify your code to generate more clear, user readable errors?

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