title: How can I set the log output level for Chef on Amazon OpsWorks?
body: <p>My question is similar to: <a href="https://stackoverflow.com/questions/17813592/how-can-i-display-the-output-of-a-opscode-chef-bash-command-in-my-console">How can I display the output of a Opscode Chef bash command in my console?</a></p>
  
  <p>I want to be able to see console output for my running recipe. In particular, my recipe failed to start JBoss because <code>JAVA_HOME</code> was not being set. It took me an entire day to figure this out because the statement <code>JAVA_HOME is undefined</code> was not being printed to the Chef output. When running chef solo, debugging output can be turned on by appending <code>-l debug</code> to the command, as in: <code>chef-solo -c solo.rb -j node.json -l debug</code></p>
  
  <p>However, when using Amazon OpsWorks, there is no such option:</p>
  
  <pre><code>sudo opsworks-agent-cli run_command [activity] [date] [/path/to/valid/json.file]
  </code></pre>
  
  <p>How can I add a log level to <code>run_command</code>?</p>