[chef] Trying to capture output


Chronological Thread 
  • From: Michael Glenney < >
  • To:
  • Subject: [chef] Trying to capture output
  • Date: Fri, 12 Oct 2012 12:13:25 -0700

We have our chef-client setup in client.rb to send the log to a log file.  And we have 'verbose_logging true' so that the output also goes to the console.  I need to capture that console output and I can't seem to do it.  That leads me to believe that when chef is teeing that output it's not sending the 2nd stream to STDOUT.  Otherwise I'd be able to capture it with a simple 'chef-client > chefout'

Any idea how chef is able to send that to my console without using STDOUT?  If I knew I might be able to figure out how to capture it.  I don't know how to find that in the code but if someone could point me to it I might be able to figure it out.

Or, if you just have the answer or know how to capture it you could just tell me and that'd be ok too :)

MG



Archive powered by MHonArc 2.6.16.

§