How can I add to the quot;Error Logquot; section in Eclipse?(如何添加到“错误日志中?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 中的部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何添加到“错误日志"中?Eclipse 中的部分?
基础教程推荐
- 存储 20 位数字的数据类型 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- RabbitMQ:消息保持“未确认"; 2022-01-01
