Storm:设置拓扑的日志级别
Storm: set log level for topology
Apache 风暴
如何为新拓扑和 exist once 设置日志级别?
我在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");
我看到 "my info log" 行,但我在 worker.log 文件中没有看到 "my debug log"。
决定:
https://community.hortonworks.com/articles/36203/debugging-an-apache-storm-topology-1.html
设置所有拓扑日志级别的最佳方式:
./bin/storm set_log_level my_topology -l ROOT=DEBUG:30
Apache 风暴
如何为新拓扑和 exist once 设置日志级别?
我在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");
我看到 "my info log" 行,但我在 worker.log 文件中没有看到 "my debug log"。
决定:
https://community.hortonworks.com/articles/36203/debugging-an-apache-storm-topology-1.html
设置所有拓扑日志级别的最佳方式:
./bin/storm set_log_level my_topology -l ROOT=DEBUG:30