title: Bash script with logger
body: <p>I'm trying to write a simple script for MYSQL data base backup with logger function. But i'm stuck on logger, i know that it should be very simple to do, but my mind is already out. 
  I'm using in script next string:</p>
  
  <pre><code>mysqldump -u username -p'pass' --all-databases &gt; /var/backup/mysqlbck.sql
  </code></pre>
  
  <p>My target is to log to syslog with logger by 2 different facility. </p>
  
  <ul>
  <li>local0.warn - should send log if database can't backup</li>
  <li>local0.info - should send log with success log.</li>
  </ul>
  
  <p>I've tried to add <code>logger -p local.warn 2&gt;&gt; /to/file/</code>
  also tried with <code>-s</code> parameter but it's not what I need and to be honest I don't see the point to use logger when there is present STDERR <code>2&gt;&gt;</code> .</p>