ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This page's section about Console Output Formatting is what you are looking for.

This page's section about Console Output Formatting is what you are looking for.

Essentially

export ROSCONSOLE_FORMAT='[${severity}] [${time}]@${line}: ${message}'
  • ${line} for __LINE__
  • ${function} for __func__
  • ${file} for __FILE__
  • ${node} for the node name, no pre-processor equivalent.