如何在本地使用Eclipse实现风暴项目中的日志更改 [英] How to implement log changes in a storm project locally using Eclipse
问题描述
./ logback / clusters.xml
文件(例如从 INFO $)更改日志级别,可以实现服务器部署代码上的更改c $ c>到 ERROR
)。
我该怎么办?解决方案我不知道我是否正确理解。 地方风暴项目是什么意思?你使用LocalCluster执行吗?在这种情况下,您需要创建一个文件logback.xml,并将记录器配置放在那里。 logback.xml必须在您的类路径中,即可以将其放入src文件夹中,以使Eclipse能够找到它。或者你把它放在别的地方,相应地扩展你的类路径。
I can't figure out how to implement changes to a local storm project using Eclipse. I can implement changes no problem on server deployed code by modifying the ./logback/clusters.xml
file (e.g. changing log level from INFO
to ERROR
).
How could I go about doing this?
解决方案 I am not sure if I understand correctly. What do you mean by "local storm project"? Do you execute using LocalCluster? In this case, you need to create a file "logback.xml" and put you logger configuration there. logback.xml must be in your classpath, ie, you can put it into "src" folder to enable Eclipse to find it. Or you put it somewhere else and extend your classpath accordingly.
这篇关于如何在本地使用Eclipse实现风暴项目中的日志更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!