Skip to main content

Questions tagged [logging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

Changing time format on RCUTILS_CONSOLE_OUTPUT_FORMAT

In ROS 1, you could set modify the representation of utc time to a more readable format with something like ...
achille's user avatar
  • 363
0 votes
1 answer
92 views

How to Set Default Logging Verbosity in ROS 2?

Is there a way to set the default logging verbosity for all nodes launched in ROS 2? I have a launch file that I run and at the beginning it outputs to the console ...
humble_roboticist's user avatar
0 votes
1 answer
41 views

How to change logging directory in ROS Python?

I'm using ROS with Python and attempting to change the logging directory by setting the ROS_LOG_DIR environment variable programmatically. I've used the following ...
Jason's user avatar
  • 1
0 votes
0 answers
9 views

No stdout output from logging after SIGINT

I have a ROS2 Python setup: Top launch file start_robot_launch that includes launch files for all the other submodules and nodes Several nodes handling different ...
shade254's user avatar
0 votes
0 answers
15 views

roslaunch output screen remote machine nodes

How can I see the output (not stdout, but messages via rospy.log* functions) in the terminal in which roslaunch was started? ...
pas-calc's user avatar
1 vote
1 answer
49 views

How to print node crash message "process has died" in red

When a node crash, the typical error message below is printed in the terminal, but in regular (blank) color, making it difficult to spot it in the flow of others RCLCPP_INFO prints: ...
PatoInso's user avatar
  • 134
1 vote
1 answer
36 views

What is the time base of ros2 loggers?

I was reading about logging here: https://docs.ros.org/en/iron/Concepts/Intermediate/About-Logging.html I notice in my log file some type of time is output in front of the strings I write to the ...
FourierFlux's user avatar
0 votes
1 answer
26 views

Is it possible to log different levels into console vs log file?

Is it possible to create a launch file so that I only see INFO and about on the console, but all DEBUG messages go into the log file? Thanks!
AYN's user avatar
  • 3
0 votes
0 answers
15 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
76 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
1 vote
1 answer
438 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
  • 135
0 votes
0 answers
29 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
  • 135
0 votes
1 answer
777 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
  • 135
1 vote
1 answer
45 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
  • 135
0 votes
1 answer
53 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
92 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
1 answer
165 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
35 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
111 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
122 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
230 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
170 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
2 views

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
5 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
34 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
218 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
143 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
89 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
32 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
60 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
125 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
109 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
  • 104
0 votes
1 answer
141 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
79 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
722 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
  • 280
0 votes
1 answer
63 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
111 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
26 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
28 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
29 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
  • 280
0 votes
1 answer
15 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
  • 280
0 votes
2 answers
68 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
32 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
4 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
8 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
26 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
19 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
23 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
45 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
15 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