Add log callback to AI project