0
$\begingroup$

Rosanswers logo

My log messages look like:

[INFO] [1605205588.116214862] [path_to_node.subsystem_name.node_name]: Here is a log message

The bit before the actual message takes up too much horizontal space, making it hard to read in my console (I'm using terminator, and have other consoles within it). I have already tried reducing the font size, but it still rarely fits on one line.

Could I change it so it is more like:

[INFO] [node_name]: Here is a log message

Or even:

[INFO]: Here is a log message

As often I do not care where the log message has come from.

Thanks!


Originally posted by CraigH92 on ROS Answers with karma: 128 on 2020-11-13

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Figured it out.

I just need to set an eninonment variable, i.e type:

export RCUTILS_CONSOLE_OUTPUT_FORMAT="[{severity}]: {message}"

Into the console, I am running the node from.

http://docs.ros2.org/bouncy/api/rcutils/logging_8h.html#a27340ac73188b1cf8d9cb96d86c76694


Originally posted by CraigH92 with karma: 128 on 2020-11-13

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.