PagerDuty / blender

A modular orchestration engine
https://github.com/PagerDuty/blender
Other
183 stars 8 forks source link

Seperate Logfile for each member #45

Open jkleinlercher opened 9 years ago

jkleinlercher commented 9 years ago

We would like to see a feature where you can define a logfile for each member. With lots of members it is now quite difficult to see what is going on and what is happening on each member.

Our workaround right now is to add the HOSTNAME prefix to the output of the command like this:

ssh_task '/usr/bin/chef-client | while read i ; do [[ -n "$i" ]] && printf "%b" "[$HOSTNAME]\t$i\n"; done ; exit ${PIPESTATUS[0]}'

However, a more convenient solution would be that blender supports a seperate logfile for each member.