summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMichael DeHaan <michael@ansibleworks.com>2013-04-27 10:36:37 -0400
committerMichael DeHaan <michael@ansibleworks.com>2013-04-27 10:36:37 -0400
commitd1ac527fb1d7cefba9b66577d16351950fc09647 (patch)
tree7af92ee4a9c18b3d8417f996ea435ee099bb12d0 /plugins
parent7a135b25698e3979fd5e506cf84aa7d42714a799 (diff)
downloadansible-d1ac527fb1d7cefba9b66577d16351950fc09647.tar.gz
Add note about new logging feature in example plugin.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/callbacks/log_plays.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/callbacks/log_plays.py b/plugins/callbacks/log_plays.py
index dac79b27d3..41c5d1b86a 100644
--- a/plugins/callbacks/log_plays.py
+++ b/plugins/callbacks/log_plays.py
@@ -19,6 +19,12 @@ import os
import time
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"
MSG_FORMAT="%(now)s - %(category)s - %(data)s\n\n"