且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用 Eclipse 在本地实现 Storm 项目中的日志更改

更新时间:2023-09-24 23:25:46

我不确定我是否理解正确.本地风暴项目"是什么意思?您是否使用 LocalCluster 执行?在这种情况下,您需要创建一个文件logback.xml"并将您的记录器配置放在那里.logback.xml 必须在您的类路径中,即您可以将其放入src"文件夹中,以便 Eclipse 找到它.或者你把它放在其他地方并相应地扩展你的类路径.

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.