来自 eclipse 插件的反馈?

发布于 2024-09-07 07:45:05 字数 300 浏览 2 评论 0原文

我编写了一个应用程序,并将其封装到 Eclipse 插件 (PDE) 中。当我从 eclipse 运行插件时,它要么运行顺利,要么失败。

如果失败了,我不会得到任何关于哪里出了问题的反馈。我正在使用记录器(logBack),但消息不会打印在控制台中。

我猜是因为它作为一个插件工作,在运行时无法访问 eclipse 中的控制台。作为替代方案,我使用了 JOption.showMessageDialog(...) ,它工作得很好,但我想避免这些摆动框使我的代码变得混乱,并坚持使用记录器。

关于如何在运行插件时打印记录器信息有什么建议吗?

I have written an application that I have wrapped into an eclipse plugin (PDE). When I run the plugin from eclipse it either goes well or it fails.

If it fails I don't get any feedback on where it went wrong. I am using a logger (logBack) but the messages don't get printed in the console.

I guess its because it works as a plugin which don't have access to the console in eclipse while running. As an alternative I have used JOption.showMessageDialog(...) which works fine but I would like to avoid cluttering my code with these swing boxes and stick with the logger.

Any suggestions on how to get the logger info printed while running the plugin?

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

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

发布评论

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

评论(1

锦上情书 2024-09-14 07:45:05

您可以使用 eclipse 日志记录工具:
http://wiki.eclipse.org/FAQ_How_do_I_use_the_platform_logging_facility%3F

你会发现所有错误Eclipse 日志视图中的消息。

萨鲁蒂

you could use the eclipse logging facility:
http://wiki.eclipse.org/FAQ_How_do_I_use_the_platform_logging_facility%3F

you'll find all the error messages in the eclipse log view.

Saluti

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