1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add note about new logging feature in example plugin.

This commit is contained in:
Michael DeHaan 2013-04-27 10:36:37 -04:00
parent 7a135b2569
commit d1ac527fb1

View file

@ -19,6 +19,12 @@ import os
import time import time
import json import json
# NOTE: in Ansible 1.2 or later general logging is available without
# this plugin, just set ANSIBLE_LOG_PATH as an environment variable
# or log_path in the DEFAULTS section of your ansible configuration
# file. This callback is an example of per hosts logging for those
# that want it.
TIME_FORMAT="%b %d %Y %H:%M:%S" TIME_FORMAT="%b %d %Y %H:%M:%S"
MSG_FORMAT="%(now)s - %(category)s - %(data)s\n\n" MSG_FORMAT="%(now)s - %(category)s - %(data)s\n\n"