[ros-users] Retrieving log level at runtime

Top Pagina
Bijlagen:
Bericht als e-mail
+ (text/plain)
Delete this message
Reply to this message
Auteur: User discussions
Datum:  
Aan: User discussions
Onderwerp: [ros-users] Retrieving log level at runtime
Hello,

I would like to retrieve the log level at runtime. I want to do so
because I have (aseba) messages that I have to dump into a
std::ostringstream prior to print their content on a ROS_DEBUG_STREAM.
Of course, I would like to perform this dump operation only if the
logging level is currently debug. Is there a public API to do so? If
not, what is the internal variable to check, and how stable will it be?
I did not find the answer to this question in the rosconsole
documentation nor in the mailing list archive.

Thank you, best regards,

Stéphane

--
Dr Stéphane Magnenat
http://stephane.magnenat.net