如何添加到“错误日志"中?Eclipse 中的部分? [英] How can I add to the "Error Log" section in Eclipse?

查看:15
本文介绍了如何添加到“错误日志"中?Eclipse 中的部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作一个 Eclipse 插件,让不懂英语的学生能够编写代码.所以我想把他[用他自己的语言]编码的错误,翻译出来,放在错误日志里,让他看到和理解.

I am trying to make an Eclipse plugin that enables a student with no knowledge of English to code. So I want to take the errors of what he coded [in his own language], translate them and put them in the Error Log for him to see and understand.

如何在错误日志"中写入?

How can I write in the "Error Log"?

推荐答案

我不清楚这里的用例.但是基于部分理解,这是您可以做的.您可以使用您选择的语言/区域设置将每个异常/错误与您的异常层次结构包装起来,然后将包装的错误/异常打印到其中.将此日志文件保存在项目路径中,以便可以从内部访问它.解析它并在更新时显示它.因此,您可以查看您的日志文件以供参考,而不是检查错误日志面板.

I'm unclear of the use case here. But based on partial understanding, here is what you can do. You can wrap each exception/error with your exception hierarchy with language/locale of your choice and then print out wrapped error/exception into it. Keep this log file in the project path, so it will be accessible from within. Parse it and display it as and when it gets updated. So instead of checking the error log panel, you can see your log file for the reference.

这篇关于如何添加到“错误日志"中?Eclipse 中的部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆