Stdout and Stderr into XBMC Log File?
#1
I've seen some Windows xbmc.log files that contain stdout messages from the libcmyth library in them.

All of the Linux logs I've seen don't have those same stdout error messages.

What needs to be done so stdout messages from a library used by XBMC shows up in the xbmc.log file?

Also, what would need to happen to have stderr messages automagically appear in the xbmc.log file?
Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
Reply
#2
I think this might do the trick (untested):
freopen("xbmc.log", "a", stdout);

However, this will completely redirect stdout to xbmc.log, and there will be no output in the actual stdout.

The proper solution would be for libraries to not output anything to stdout.
Reply

Logout Mark Read Team Forum Stats Members Help
Stdout and Stderr into XBMC Log File?0