# logging actual user instead of effective user in ansible logging

**URL:** <https://forum.ansible.com/t/logging-actual-user-instead-of-effective-user-in-ansible-logging/24003>\
**Category:** Ansible Developer\
**Created:** [March 17, 2017, 6:47pm UTC](https://forum.ansible.com/t/logging-actual-user-instead-of-effective-user-in-ansible-logging/24003 "2017-03-17T18:47:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arthur\_Reyes](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@Arthur\_Reyes](https://forum.ansible.com/u/Arthur_Reyes)\
**Post date:** [March 17, 2017, 6:47pm UTC](https://forum.ansible.com/t/logging-actual-user-instead-of-effective-user-in-ansible-logging/24003/1 "2017-03-17T18:47:19Z")

</div>

Is there an existing toggle to change the logged uid from the effective user (whoami) to the actual user? (who am i).

2017-03-17 12:53:13,960 p=27204 u=ansible | PLAY [all] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2017-03-17 12:53:14,002 p=27204 u=ansible | TASK [setup] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
2017-03-17 12:53:14,342 p=27204 u=ansible | ok: [sys1]  
2017-03-17 12:53:14,674 p=27204 u=ansible | ok: [sys2]

Even better, is there a variable that defines the prepended values? In above, this is date, time, pid, uid
