# Cannot get ROS_INFO, ROS_DEBUG, etc to print to log file

Hi.

When using ROS_INFO, ROS_DEBUG, etc in my C++ node, the messages appear in the terminal but are not written to the log file (.ros/log/latest/rosout.log) and also do not appear in rqt_console. I have tried changing the logging level in rqt_console, and also programatically with

if( ros::console::set_logger_level(ROSCONSOLE_DEFAULT_NAME, ros::console::levels::Debug) ) {
ros::console::notifyLoggerLevelsChanged();
}


but no luck. I should mention that other debug messages do appear (ones generated by ROS itself), just not my own ones.

Does anyone know what I am doing wrong?