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

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 
主站蜘蛛池模板: 白沙| 温宿县| 温州市| 南澳县| 彭水| 那曲县| 广南县| 崇阳县| 宣汉县| 旺苍县| 钟祥市| 云浮市| 疏附县| 延长县| 陆良县| 安庆市| 陈巴尔虎旗| 仪征市| 七台河市| 蚌埠市| 襄城县| 汉川市| 班戈县| 通河县| 璧山县| 江都市| 巧家县| 苍山县| 通州区| 星子县| 保康县| 古交市| 东港市| 高州市| 深州市| 沅陵县| 碌曲县| 徐汇区| 隆子县| 大余县| 杭锦旗|