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
But some logs are not "sent" to this callback but directly printed in the console.
For instance:
python myScript.py
...
MY LOGGER: deinterlace -1, mode auto, is_needed 0
MY LOGGER: looking for vout window module matching "any": 6 candidates
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
MY LOGGER: no vout window modules matched
MY LOGGER: Opening vout display wrapper
...
Is there a way to catch those error messages straight from the python script ?
I thank you in advance for your help.
Regards,
Azsde.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: