Closed azsde closed 8 months ago
These messages are not native from libvlc, they come from other libraries, hence are not included in the libvlc log system. I would guess that redirecting sys.stderr to a StringIO before instanciating libvlc should allow you to catch these.
Hello,
I am using the python-vlc module on a Raspberry Pi Zero, and I need to be able to detect some events by parsing the logs.
I have successfully redirected the log output to my callback with the following code:
But some logs are not "sent" to this callback but directly printed in the console.
For instance:
Is there a way to catch those error messages straight from the python script ?
I thank you in advance for your help.
Regards,
Azsde.