# Callback Plugins capture output when using 'With\_items'

**URL:** <https://forum.ansible.com/t/callback-plugins-capture-output-when-using-with-items/23401>\
**Category:** Ansible Developer\
**Created:** [January 6, 2017, 10:15pm UTC](https://forum.ansible.com/t/callback-plugins-capture-output-when-using-with-items/23401 "2017-01-06T22:15:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt4](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Matt4](https://forum.ansible.com/u/Matt4)\
**Post date:** [January 6, 2017, 10:15pm UTC](https://forum.ansible.com/t/callback-plugins-capture-output-when-using-with-items/23401/1 "2017-01-06T22:15:15Z")

</div>

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
