如何在本地使用Eclipse实现风暴项目中的日志更改 [英] How to implement log changes in a storm project locally using Eclipse

查看:216
本文介绍了如何在本地使用Eclipse实现风暴项目中的日志更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何使用Eclipse实现对本地风暴项目的更改。通过修改 ./ logback / clusters.xml 文件(例如从 INFO 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屋!

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