Ask Your Question
2

ROS and Syslog

asked 2021-02-12 04:55:00 -0600

Harald gravatar image

Hi I have a ROS node which uses ROS_INFO and ROS_ERROR for outputs for the user. Now I must send the same messages also to syslog. So my question is if there is a easy way to send a ROS_ERROR message at the same time to the stdout and to syslog. Or is it necessary to copy the ROS_INFO lines and usw syslog?!

best regards Harald

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-03-15 17:23:40 -0600

130s gravatar image

updated 2021-03-16 08:43:13 -0600

I found #q229966 related.

rosconsole is the logger in ROS that logs via log4xx that provides Syslog Appender, an option to log to syslog.

Another thing I can think of, which is totally up to your application design so is not a generic answer though, is that if your application that runs via system level facitlity, then that technology in use might have a way to log to syslog. Examples: On Ubuntu, an application that runs as systemd service logs using jornalctl that connects to rsyslogd. So all rosconsole output will eventually be logged to syslog file (I'm not entirely sure if the pipeline I described is accurate so please correct me if I'm wrong).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2021-02-12 04:55:00 -0600

Seen: 94 times

Last updated: Mar 16