Expand description
ROS 2 log file discovery and tailing.
Functionsยง
- find_
log_ by_ node - Locates a log file for the given node name by searching filenames, PID, and recent run directories.
- find_
log_ by_ pid - Finds a log file in the ROS 2 log directory whose filename contains the given PID.
- find_
log_ for_ running_ node - Finds a log file for a currently running node, preferring PID-based lookup over name-based.
- find_
node_ pid - Returns the PID of a running ROS 2 node by searching process arguments with
pgrep. - read_
tail - Reads the last
max_lineslines from the file atpath. - ros2_
log_ dir - Returns the ROS 2 log directory, checking
ROS_LOG_DIR,ROS_HOME, and~/.ros/log.