# Ansible logging to get playbook name

**URL:** <https://forum.ansible.com/t/ansible-logging-to-get-playbook-name/28106>\
**Category:** Ansible Project\
**Created:** [July 20, 2018, 4:38pm UTC](https://forum.ansible.com/t/ansible-logging-to-get-playbook-name/28106 "2018-07-20T16:38:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ansiblekrazy](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@ansiblekrazy](https://forum.ansible.com/u/ansiblekrazy)\
**Post date:** [July 20, 2018, 4:38pm UTC](https://forum.ansible.com/t/ansible-logging-to-get-playbook-name/28106/1 "2018-07-20T16:38:47Z")

</div>

is there way to write playbook information in logging file with other data like tasks status etc. Important thing is where to get playbook information…

I want logs like:

Playbook name :

below that logs corresponding to the playbooks

---

<div class="post-metadata">

**Author:** ![elavarde](https://avatars.discourse-cdn.com/v4/letter/e/c2a13f/32.png) [@elavarde](https://forum.ansible.com/u/elavarde)\
**Post date:** [July 23, 2018, 7:44am UTC](https://forum.ansible.com/t/ansible-logging-to-get-playbook-name/28106/2 "2018-07-23T07:44:23Z")

</div>

Have a look at the callback plugins, they’re meant for this: [https://docs.ansible.com/ansible/latest/plugins/callback.html](https://docs.ansible.com/ansible/latest/plugins/callback.html)

You’ll find examples e.g. with `rpm -ql ansible | grep /callback/`
