How can I turn on logging for libcmyth - looks like it's outputting to stderr
#1
I'm trying to get commercial break skip support working for myth://.

I've got it all wired up, but I keep getting an empty set of commercial breaks. There is logging in libcmyth that should help determine the problem, but I don't know where it would be going. It's not showing up in the xbmc.log file.

Some of the logging is standard fprintf to stderr. Any idea where this is directed to for XBMC?

Thanks,
David
Reply
#2
Standard printf() should do the trick.

Alternatively, you can hack into the dllloader and fine where fprintf() is being called into, detect stderr and dump that to the log instead (kinda hacky)
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
So, does that mean it's not possible to see what is getting logged to stderr anywhere on the filesystem, i.e. all the fprintf output is getting swallowed by XBMC?
Reply
#4
Sorted it out. Altered /usr/local/bin/xbmc to define where stderr should go using 2>stderr.log
Reply
#5
Ah - good thinking Smile
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
How can I turn on logging for libcmyth - looks like it's outputting to stderr1