info: write debugging output to file if GST_DEBUG_FILE environment variable is set
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 4 Jun 2010 10:24:59 +0000 (11:24 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 21 Jul 2010 14:54:07 +0000 (15:54 +0100)
commit9d4caf8d8c6dd0018258fe97451201a3790e6ca8
tree60f23694ad35c8692f6c312db22dbe1b0321d047
parent21c8edca2a04938a9afcd63d7ac3b82a8cb87c9b
info: write debugging output to file if GST_DEBUG_FILE environment variable is set

This changes behaviour slightly in that we no longer output things
via g_printerr(), so any non-standard glib printerr handlers are no
longer called when GST_DEBUG is enabled. However, this seems not
really desirable in most cases anyway, and the GLib docs also say
that libraries should not use g_printerr() for logging.

Other stderr output (e.g. warnings, or application messages) will
of course not be captured in the log file this way.

GST_DEBUG_FILE=- will redirect debug output to stdout.
gst/gstinfo.c