官术网_书友最值得收藏!

Updating the log level from the Storm CLI

We can modify the log level from the Storm CLI. The following is the command that the user has to execute from the Storm directory to update the log settings on the runtime:

bin/storm set_log_level [topology name] -l [logger name]=[LEVEL]:[TIMEOUT] 

In the preceding code, topology name is the name of the topology, and logger name is the logger we want to change. If you want to change the ROOT logger, then use ROOT as a value of logger name. The LEVEL is the log level you want to apply. The possible values are DEBUG, INFO, ERROR, TRACE, ALL, WARN, FATAL, and OFF.

The TIMEOUT is the time in seconds. The log level will go back to normal after the timeout time. The value of TIMEOUT is mandatory if you are setting the log level to DEBUG/ALL.

The following is the command to change the log level setting for the storm_example topology:

$> bin/storm set_log_level storm_example -l ROOT=DEBUG:30  

The following is the command to clear the log level setting:

$> ./bin/storm set_log_level storm_example -r ROOT 
主站蜘蛛池模板: 和田县| 安化县| 固安县| 资兴市| 渑池县| 黎川县| 浙江省| 通州市| 乌苏市| 青海省| 磐安县| 仲巴县| 孝义市| 独山县| 邹城市| 永宁县| 凉山| 宁国市| 磐安县| 确山县| 辰溪县| 盐城市| 铁岭县| 晋州市| 留坝县| 新密市| 新巴尔虎左旗| 南宫市| 岗巴县| 石家庄市| 合水县| 东乌珠穆沁旗| 河南省| 汉中市| 宝兴县| 南宫市| 商城县| 兰西县| 天等县| 神池县| 江西省|