Converted the logging to GStreamer methods.