gmessages: Add a convenience function for logging details of a GError
@pwithnall
Submitted by Philip Withnall Link to original bug (#769815)
Description
Simple patch and test case attached. API is very much open to discussion — it's currently: void g_log_structured_error (const gchar *log_domain, GLogLevelFlags log_level, const GError *error, ...); and has the same semantics as g_log_structured(), except if the @error is non-NULL, in which case it also adds the error fields to the structured log entry.