storm:为拓扑设置日志级别

x9ybnkn6  于 2021-06-24  发布在  Storm
关注(0)|答案(1)|浏览(305)

Apache风暴
如何设置新拓扑和现有拓扑的日志级别?
我在java中写道:

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
...
private static final Logger LOG = LoggerFactory
            .getLogger(MyClass.class);
...
LOG.debug("my debug log");
LOG.info("my info log");

我看到了“我的信息日志”行,但在worker.log文件中看不到“我的调试日志”。

c3frrgcw

c3frrgcw1#

决定:
https://community.hortonworks.com/articles/36203/debugging-an-apache-storm-topology-1.html
设置所有拓扑的日志级别的最佳方法:

./bin/storm set_log_level my_topology -l ROOT=DEBUG:30

相关问题