Removes all registered instances of the given logging functions.
the log function to remove, or null to remove the default log function
How many instances of the function were removed