edit logger levels programmatically or from the command line
I searched around on this site, the roscpp/logging page and on the rosconsole wiki page but as far as I can tell there are two obvious ways of changing the logger level and they are:
- using rxloggerlevel (maybe through rxconsole too?)
- modifying the ROSCONSOLE_CONFIG_FILE
Now, I just found this page, and it told me that using roscpp I can programmatically change the logger level as in rosconsole/examples/example.cpp. So, in writing this question I figured out half of my question but I thought I might as well ask this anyway:
Is there a way to modify the logger level from the command line? Something along the lines of:
roslog {package_name/logger} {logger level}
ex. "roslog sbpl DEBUG" or "roslog sbpl/my_log DEBUG"
Regarding, changing the logger level programmatically, I'll follow the example code and post any questions here if it doesn't work as expected.