How to use yarp logging in Python applications? #2820
Unanswered
ddetommaso
asked this question in
Support - Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to exploit yarp logging in Python applications but I am encountering a few errors using the bindings.
I am listing below some of the issues I have found and the relative question.
How to properly instantiate Yarp.Log ?
At the moment instantiating the
yarp.Log()
without parameters causes seg fault. As workaround I need to define something likeyarp.Log("",0,"")
How to use components and id ?
Recently the logging methods include the possibility to define components and ids. It would be helpful to exploit this feature for Python apps as well. At the moment the bindings not include the LogComponent class, but even including the import in yarp.i defining a
yarp.LoComponent("mycomponent")
does not work as expected. Is there a workaround to make components and/or ids work?How to filter out all the yarp loggings in the console output when executing a Python app using yarp?
I have tried with
YARP_QUIET
but still I get some of the logging from devices during initialization.Many thanks
Beta Was this translation helpful? Give feedback.
All reactions