# Callback plugin output; logging to ansible.log

**URL:** <https://forum.ansible.com/t/callback-plugin-output-logging-to-ansible-log/18221>\
**Category:** Ansible Project\
**Created:** [May 13, 2015, 8:57am UTC](https://forum.ansible.com/t/callback-plugin-output-logging-to-ansible-log/18221 "2015-05-13T08:57:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [May 13, 2015, 8:57am UTC](https://forum.ansible.com/t/callback-plugin-output-logging-to-ansible-log/18221/1 "2015-05-13T08:57:04Z")

</div>

We use a couple of callback plugins and one of my colleagues has noticed that their output doesn’t appear in ansible.log

Is it possible to change this so we can see callback output?

We’re running 1.9.1

Many thanks,

Jon

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [May 13, 2015, 12:06pm UTC](https://forum.ansible.com/t/callback-plugin-output-logging-to-ansible-log/18221/2 "2015-05-13T12:06:01Z")

</div>

I would tend to say that should be the responsibility of the plugin. Ansible doesn’t control what the plugin does, it only provides hooks for the plugin to execute.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [May 13, 2015, 12:07pm UTC](https://forum.ansible.com/t/callback-plugin-output-logging-to-ansible-log/18221/3 "2015-05-13T12:07:31Z")

</div>

Considering there are syslog callbacks I would be remiss to make this  
the default, but the callbacks themselves should be able to explicitly  
send data to ansible.log.

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [May 13, 2015, 2:46pm UTC](https://forum.ansible.com/t/callback-plugin-output-logging-to-ansible-log/18221/4 "2015-05-13T14:46:26Z")

</div>

Fair enough, a default would not seem right.

I will modify my plugins.
