Hi,
I am wondering how to access the current log level of a certain logger in ROS during runtime. I would like to write something like this:
if (Logger.getLogger("log4j.logger.ros.my_package").getLevel() == Level::DEBUG)
{
// some debugging code
}
I know that this is possible in log4j in Java, but I was unable to find out how to access the loggers in roscpp. The reason behind this is that I would like to perform certain calculations only when being in DEBUG mode.
Thanks!
Sebastian
Originally posted by sebastianh on ROS Answers with karma: 70 on 2012-12-13
Post score: 0