# JSON log callback\_plugin questions

**URL:** <https://forum.ansible.com/t/json-log-callback-plugin-questions/15922>\
**Category:** Ansible Project\
**Created:** [August 12, 2014, 2:46pm UTC](https://forum.ansible.com/t/json-log-callback-plugin-questions/15922 "2014-08-12T14:46:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_M\_Souter](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@Peter\_M\_Souter](https://forum.ansible.com/u/Peter_M_Souter)\
**Post date:** [August 12, 2014, 2:46pm UTC](https://forum.ansible.com/t/json-log-callback-plugin-questions/15922/1 "2014-08-12T14:46:10Z")

</div>

Hello All!

I’ve made a basic callback\_plugin for creating logs as json, check it out: [https://github.com/petems/ansible-json](https://github.com/petems/ansible-json)

So far so good, it all works.

My plan is to a have a toggableable ability to write the logs to files on the system that ansible’s running on (Current progress here: [https://github.com/petems/ansible-json/tree/create\_json\_files](https://github.com/petems/ansible-json/tree/create_json_files)).

Two questions:

1. How do I read playbook variables in the plugin? My plan is to have something like this in the playbook:

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [August 12, 2014, 7:07pm UTC](https://forum.ansible.com/t/json-log-callback-plugin-questions/15922/2 "2014-08-12T19:07:53Z")

</div>

Hi,

For callback plugin development questions, can you please post to ansible-devel?

Thank you!
