gint gda_connection_start_logging
the connection
the name of the logfile
This function causes the server to log the statements it executes in filename.
-1 on error and 0 if everything is okay