Overcome the 10000 lines limitation of the yarplogger
#558
Replies: 5 comments 15 replies
-
I'm strongly in favor of implementing anything that may alleviate the pain of losing messages with a platform undergoing heavy usage. |
Beta Was this translation helpful? Give feedback.
-
Do you need the whole log to be available while the robot is running? |
Beta Was this translation helpful? Give feedback.
-
??? |
Beta Was this translation helpful? Give feedback.
-
@S-Dafarra The issues # 3, # 5 and # 6 have been fixed by robotology/yarp#2743. As discussed some time ago, I recommend testing it on a dedicated machine, so you can use yarp master branch. |
Beta Was this translation helpful? Give feedback.
-
A possible solution for issue # 4 (see above) is now given by robotology/yarp#2767 and is under testing. |
Beta Was this translation helpful? Give feedback.
-
The
yarplogger
is a fundamental tool in the daily use of the robots. It allows to quickly spot errors, and produce useful logs to request help in debugging those errors.At the moment, the default maximum number of lines for an entry of the logger is
10000
. This default value has been set about 7 years ago robotology/yarp@85a3710.This limit is reached quite easily. It is enough for an error, or a status message, to be printed too often, and pretty soon the log gets saturated, unfortunately (see robotology/icub-main#768 for example).
Unfortunately, we are often in the case in which we need to detect a nasty bug that may occur after hours of robot use. Then, when the problem actually occurs and we want to check what happened, the log saturated minutes earlier and the error message got lost.
We also tried to increase consistently the maximum number of messages, up to 100K. In this case, when we reach a high number of messages, the
logger
freezes, and the log is once more unusable.I wonder whether some mechanism could be implemented to avoid missing some messages. For example, a new log entry could be created automatically every time the limit of 10000 is reached.
Any idea?
@pattacini @drdanz @randaz81 @maggia80 @DanielePucci
Beta Was this translation helpful? Give feedback.
All reactions