How does the task_callback parameter work?

I want to set the task_callback parameter to the Crew, but I have no idea what to do to show the output in the terminal. Do I need to define a function?