You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regarding the first question: use 2. log(..., severity=INFO) but offer 1. loginfo(...) for convenience.
Regarding the second question: the keyword argument (2.) is preferred.
Additionally it would be nice to have a get_named_logger(name='xxx') which can be called once and then be passed around. That logger could have log(..., severity=INFO) as well as info(...) for convenience.
meta-ticket.
First question: which usage do we want with respect to the severity:
loginfo(...)
(like in ROS 1)log(..., severity=INFO)
Second question: when considering the other logging variations, which do we want?
log_info_throttle_named(...)
(like the C usage)log_info(..., throttle_duration=1.0, name='my_name')
(more pythonic IMO)The text was updated successfully, but these errors were encountered: