title: shell scripting error logging
body: <p>I'm trying to setup a simple logging framework in my shell scripts. For this I'd like to define a "log" function callable as </p>
  
  <pre><code>log "LEVEL" $message
  </code></pre>
  
  <p>Where the message is a variable to which I have previously redirected the outputs of executed commands. My trouble is that I get errors with the following</p>
  
  <pre><code>{message=command 2&gt;&amp;3 1&gt;&amp;3 3&gt;&amp;-} &gt;&amp;3
  log "INFO" $message
  </code></pre>
  
  <p>There's something wrong isn't there?</p>
  
  <p>TIA  </p>