Adds the logging function to the list of logging functions.
Be sure to use G_GNUC_NO_INSTRUMENT on that function, it is needed.
G_GNUC_NO_INSTRUMENT
the function to use
called when user_data is not used anymore
user_data
user data