Callback Plugins capture output when using 'With_items'

Hi ,

I have ansible tasks that prints the values in the logs through loop using with-items. Any idea on capturing the output in my custom callback plugin when I use ‘With-items’. If it is a single item, it works perfectly.

Any help is appreciated