Add hook for calling a user defined function for logging all share submissions.