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

  • Mastering Apache Storm
  • Ankit Jain
  • 186字
  • 2021-07-02 20:32:32

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 
主站蜘蛛池模板: 安图县| 蒙阴县| 肥东县| 新昌县| 利川市| 盐源县| 昭觉县| 溆浦县| 南乐县| 海晏县| 宁陵县| 兴城市| 崇明县| 普兰店市| 志丹县| 潮州市| 江达县| 东光县| 内江市| 喀喇| 莱西市| 白河县| 临汾市| 全州县| 定陶县| 望奎县| 隆安县| 沛县| 固原市| 旌德县| 梁河县| 无极县| 天镇县| 玉门市| 宜君县| 徐闻县| 于田县| 罗源县| 滁州市| 宁德市| 醴陵市|