sets gLogData with user_data in log_set_handler()