clearpathrobotics / robot_upstart

ROS package of helper functions related to bringing up roslaunch on system startup.
BSD 3-Clause "New" or "Revised" License
192 stars 94 forks source link

Incomplete log since Kinetic #89

Open FrancoisTeyssere opened 4 years ago

FrancoisTeyssere commented 4 years ago

Greetings,

At the time I used this package with 14.04, Indigo and upstart, there was no issue getting a full log of every node in real time by usingtail -f on the myjob.log file.

However, now that it's under 16.04 with Kinetic and systemd, I can't seem to find a viable option to obtain a full log, as if I were running roslaunch from a terminal.

I tried sudo journalctl -u myjob.service -f -n 50 -o short, but only some of the messages are displayed here (I did not identify yet what decides which messages are shown or not).

I also tried to set the log directory with --logdir, but I get one log file per node and rosout's logfile does not display all the messages either.

Did anyone manage to have an aggregate view of all the log messages, as if launched from a terminal?

mikepurvis commented 4 years ago

The journal for the generated unit contains all the stdout/stderr stuff emitted by roslaunch— exactly the content that used to go into the var/log/upstart/[unit].log file. Some other stuff may be ending up in ROS_LOG_DIR (by default ~/.ros/log), but that was the case under both upstart and systemd.

paulbovbel commented 4 years ago

journald may require some extra configuration, see the Storage and RateLimit* settings in particular.