Questions tagged [logging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Console output with `catkin make_tests` for ROS1

I'm running some C++ unit tests in CI with catkin run_tests my_pkg I wanted to collect the unit tests' output (INFO or higher), similar to when we run ...
BlueMoon93's user avatar
1 vote
1 answer
48 views

Is it possible to record or log specific topics in ROS2 without publishing?

I apologize if this is a somewhat naive question, but I don't really know much about ros2's architecture beyond basic utilization. I'm a student working in autonomous vehicle research, and my team ...
2muchdata's user avatar
0 votes
1 answer
201 views

How to specify the datetime format for ros2 logs?

I read https://docs.ros.org/en/foxy/Tutorials/Demos/Logging-and-logger-configuration.html#console-output-formatting but it doesn't mention how to specify the datetime format to be something else than ...
Hakaishin's user avatar
  • 115
0 votes
0 answers
17 views

How to I stop a ros2 node in python from generating an empty log file under ~/.ros/log?

I have a custom node which I create in a Python program, the specifics don't matter since any basic node creates such a log file under ~/.ros/log. How can I prevent ...
Hakaishin's user avatar
  • 115
0 votes
1 answer
317 views

How can I disable all logging to files under ~/.ros but still log to stderr?

I read https://docs.ros.org/en/humble/Concepts/Intermediate/About-Logging.html but that didn't really explain how one would go about it. Is it even possible? I am on Ubuntu 22.04 and I'm on a source ...
Hakaishin's user avatar
  • 115
0 votes
1 answer
31 views

What are these log files(python3_657059_1698250083616.log) and how can I disable them?

Under ~/.ros/log I have a bunch of empty log files. What are they for, what generates them and how can I disable them? I am on Ubuntu 22.04 and I'm on a source build ros_humble. ...
Hakaishin's user avatar
  • 115
0 votes
1 answer
23 views

Getting current log directory in a CPP Node

I have a different process in my CPP node that writes a separate log file. Right now, this log is written to a file in ros2_ws/log/additional_process.log but I ...
moschmdt's user avatar
0 votes
1 answer
56 views

Best practice for logging callback durations and execution times in ROS

I'm wondering if there are any best practices for logging callback durations and execution times in ROS? As my system evolves and implementation is changed, I'd like to be able to monitor the ...
woodwardsquidward's user avatar
0 votes
0 answers
41 views

No ROS_WARN messages in ros log file

I ported my project to Noetic coming from Kinetic. But now all my ROSWARN are not in the logfile when I launch it with output log. When I launch it with output screen, all ROSWARNs are landing in ...
CoolKiffings's user avatar
0 votes
1 answer
85 views

No DEBUG messages on stdout/stderr

When printing/logging messages with ROS_DEBUG there is no output on stdout/stderr, despite launching a node with ...
user avatar
0 votes
1 answer
23 views

ros2 logging - filtering by log name via executable arguments

Lets say we have two different loggers in the same program and node. Logger l1 = rclcpp::get_logger("l1"); Logger l2 = rclcpp::get_logger("l2"); ...
Pablo Iñigo Blasco's user avatar
0 votes
1 answer
80 views

Roslaunch: file not found error for logging

Hi, I am working on a project, and I want to start the different nodes using a launch file. In the latter I start one Python node and the other is an rqt plugin that I created: ...
user avatar
0 votes
1 answer
64 views

[ROS2] [launch_pytest] node outputting to stderr instead of stdout

As asked by @clalancette, I am reposting launch issue #619 here. Operating System: Ubuntu 20.04.4 ROS2 Distro: foxy Version or commit hash: launch: 1.1.0 (launch_ros: 0.20.0) (pytest: 7.1.2) DDS ...
user avatar
0 votes
2 answers
83 views

[ROS2] Best practice for catching all exceptions for logging

I am creating a robot with ROS2 foxy that is in the field, and therefore not monitored all the time. To help with debugging any eventual bugs/crashes that are unaccounted for, I was thinking of ...
Bart van Ingen's user avatar
0 votes
1 answer
70 views

Filtering out ROS2 rclcpp and rcl debug logs

Hi I am using ROS2 Foxy. My node has several types logging statements (info, debug, error). When I set the logging level to info, i see my error and info statements, which is expected. when i set the ...
user avatar
0 votes
1 answer
1 view

Is there a way to subscribe to different topics at the same time in rospy?

I am subscribing to various topics and I wish to print them into a .csv log file, but I am not able to print any one of them outside their own callback function. You can see the code at Click for Code ...
user avatar
0 votes
1 answer
3 views

How to configure none node loggers for rosout

For fine grained configuration of log levels we want to use a none node logger or a child of the node logger. For both I can see the output on the console but not on topic /rosout. Also using --ros-...
user avatar
0 votes
1 answer
24 views

Get logging output to /rosout using rclutils (writing a client library)

I'm writing a ROS2 client library for SWI-Prolog. Basic pub/sub works. Next step is to get logging to work. Calling rcutils_log() works fine for loging to the ...
user avatar
0 votes
1 answer
133 views

rqt_console doesn't display all messages

My post is a duplicate of this post which was closed for unknown reasons. ROS users keep commenting under that post which means that the problem still exists! Basically, ...
user avatar
0 votes
1 answer
38 views

how to set up log level by package at startup?

Is there a way to configure the logging level associated to a package independently of the node or the executable it is located in? For example. In ROS1 navigation stack I could develop a planner as a ...
Pablo Iñigo Blasco's user avatar
0 votes
1 answer
44 views

rclpy: Change the output format of the default logger (RcutilsLogger)

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 ...
user avatar
0 votes
1 answer
23 views

external config for spdlog or ability to set custom filename for log in ros2

Is there anything in the pipeline in terms of building ability to read external config files for the default logger, spdlog? Alternatively, does a method exist or is currently being developed, for ...
user avatar
0 votes
1 answer
23 views

rosout and stderr not appearing in ROS_LOG_DIR

I changed the ROS_LOG_DIR from the default and now I am only seeing node specific stdout.log files in the generated folders. I know my nodes are generating stderr messages with ROS_ERROR_STREAM but I ...
user avatar
0 votes
1 answer
52 views

How to log in separate file per node

Hi community! In the .ros/log/{cryptic_someting}/ folder I see some nodes create their own log files: E.g.: controller_spawner-3.log or rqt_robot_steering-5.log How can I achieve that for my own ...
user avatar
0 votes
1 answer
45 views

What is the intention of using spdlog under the hood?

So now (since eloquent?) the nice spdlog library is used under the hood for logging. I was wondering if there is any plan on further integration? More specifically, I would look forward to having an ...
jbvo's user avatar
  • 84
0 votes
1 answer
52 views

ros2 logging demo C++

I am trying to migrate code to ROS2 and I am stuck on logging. From https://index.ros.org/doc/ros2/Concepts/Logging/ I got to the code example at https://github.com/ros2/demos/tree/master/logging_demo ...
user avatar
0 votes
1 answer
40 views

[ROS2] How to enable spdlog logger?

I know how to edit the logging format and logging level, but how to change the logger itself? I was searching and trying with ...
user avatar
0 votes
3 answers
301 views

No stdout logging output in ROS2 using launch

Hi all, I am unable to see any logging output from stdout when using ros2 launch, and I need some help figuring out what's going on / if this is expected. For ...
phobon's user avatar
  • 260
0 votes
1 answer
38 views

rosserial_arduino Integer Printing

How do you get integers to print under node handler.loginfo or any of the other .() <---Various logging types? I'm trying to have my subscriber post the data that I have in my subscriber servo_cb ...
user avatar
0 votes
1 answer
53 views

[ROS2] How to enable logging

I'm having troubles with my ROS2 setup. One common way I use during troubleshooting is logging. Basically, whenever I face an issue, my standard response is: crank up the logging! My question is: how ...
user avatar
0 votes
1 answer
10 views

View text files of ROS logs in color

Sometimes we save our ROS logs as text files and view them later when we need them. However, it can be difficult to parse everything when it's not in color. Is there any built-in ROS solution for view ...
user avatar
0 votes
1 answer
16 views

[ROS2] How to set the logfile

Hi I'm using a logger with ROS2 dashing. I couldn't find any explanation, how I can change the logger to log to a file instead of std output and how I can set the logfile. Any help is appreciated. ...
Andreas Ziegler's user avatar
0 votes
1 answer
21 views

RCLCPP logging macros not a single expression

I just discovered after a lot of confusion that the RCLCPP_ logging macros do not expand to a single expression and therefore cannot be used in brace-less ...
phobon's user avatar
  • 260
0 votes
1 answer
12 views

Changing the verbosity of rosout.log file

I've been digging further into the log files under ~.ros/log and am interested in changing the verbosity of what appears there. As an example, a driver node for an ...
phobon's user avatar
  • 260
0 votes
2 answers
32 views

ROS2 ROS_ERROR_STREAM equivalent

Is there an equivalent to the stream log functions in ROS1? I only found the RCLCPP_ERROR which is an equivalent for the ROS_ERROR. Originally posted by Flautz on ROS Answers with karma: 3 on 2018-12-...
user avatar
0 votes
1 answer
21 views

Where are my node log files?

We have a system with a few dozen nodes, started from a top-level launch file consisting mostly of <include> tags. Most of them are ...
Rick's user avatar
  • 249
0 votes
1 answer
2 views

rosconsole: log file bloated with ros topics, etc

Hi, When we are using ROS_DEBUG_STREAM() macro, and the output is configured to screen, everything is fine. But when we configure it to log, and it goes to file, we ...
user avatar
0 votes
1 answer
6 views

Naming log folder

Hi everyone; Is there any way to specify in my python program the name of the folder to which logs for respective nodes are saved? As in, when I launch my experiment via ...
user avatar
0 votes
1 answer
15 views

Logger conflicts with my own logger

When I call rospy.init_node, logging of errors using my own defined logger stops working and nothing is displayed. For example when I call an object without its ...
user avatar
0 votes
1 answer
12 views

ROS_WARN messages go to stdout instead of stderr?

I am running the velodyne package in Ubuntu 16.04 with ROS Kinetic. I am trying to log all the errors to a file. However, the ROS_WARN messages seem to go to the normal stdout instead of the stderr in ...
user avatar
0 votes
1 answer
11 views

rosout logging + topic subscription: not thread safe

I believe I have found a threading issue with ros logging. If a node subscribes to a topic in one thread and logs to rosout in another, a conflict can occur, since the nodes topic list may be altered ...
user avatar
0 votes
1 answer
14 views

error reporting: ROS_ERROR or error topic

What is best practice for reporting global errors throughout ROS? One option is to report errors through ROS_ERROR only. A node could then subscribe to /rosout_agg ...
user avatar
0 votes
1 answer
8 views

How to simplify massive numbers of log files

How do you simplify ROS's logging system so it doesn't generate a massive number of log files? I'm trying to diagnose a problem with a specific node crashing upon launch. So, the first thing I want to ...
user avatar
0 votes
1 answer
2 views

rospy equivalent of ROS_*_NAMED

I came across a blog post about modifying the settings for logging. In the post, the ROS_WARN_NAMED function was mentioned. I hadn't seen that before and thought ...
user avatar
0 votes
1 answer
3 views

Find node that logged an error?

As the title says, when a ROS error (or warning, or info) message is printed, how do I find out which node it came from? Originally posted by Jacob.Beck27 on ROS Answers with karma: 13 on 2017-08-21 ...
user avatar
0 votes
1 answer
34 views

How do I publish ROS messages to ROS_INFO?

I currently have a node that is producing messages of the type 'sensor_msgs' which I would like to see in my /rosout log. My approach was to add a statement similar to the following: ...
user avatar
0 votes
1 answer
6 views

Change rosconsole minimum log level

I'm debugging a ROS node and I'm trying to find an easy way to change the output level of rosconsole so I can see the debug statements, but I'm not seeing much. I've seen something about changing the ...
user avatar
0 votes
1 answer
137 views

Completely disable logging outputs on screen

Hi, I want to disable the ROS logging in the console completely, but still have the logging to the /rosout topic. I tried these two options: Set ...
user avatar
0 votes
1 answer
12 views

topic is already advertised as md5sum [...] and datatype [...]

I'm trying to get output from a remote node to the /rosout topic and view it with 'rostopic echo rosout' running on the master. I have a roscore running on hostA brought up by starting roslaunch. On ...
user avatar
0 votes
1 answer
16 views

ROS_INFO_ONCE in Python

Is there an equivalent to ROS_INFO_ONCES in rospy? I found rospy.loginfo_throttle() but nothing like ...
user avatar