- 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
- OpenDaylight Cookbook
- C#完全自學教程
- Manga Studio Ex 5 Cookbook
- 算法大爆炸:面試通關(guān)步步為營
- 編寫整潔的Python代碼(第2版)
- C語言程序設(shè)計
- 機器人Python青少年編程開發(fā)實例
- jQuery從入門到精通 (軟件開發(fā)視頻大講堂)
- 微信公眾平臺開發(fā):從零基礎(chǔ)到ThinkPHP5高性能框架實踐
- CouchDB and PHP Web Development Beginner’s Guide
- 面向?qū)ο蟪绦蛟O(shè)計(Java版)
- 零基礎(chǔ)入門學習Python
- D3.js 4.x Data Visualization(Third Edition)
- PHP編程基礎(chǔ)與實例教程
- 深入淺出React和Redux