title: Write to custom log file from a Bash script
body: <p>In Linux, I know how to write a simply message to the <code>/var/log/messages</code> file, in a simple shell script I created:</p>
  
  <pre><code>#!/bin/bash
  logger "have fun!"
  </code></pre>
  
  <p>I want to stop throwing messages into the default <code>/var/log/messages</code> file, and create my own.</p>
  
  <p>I tried this:</p>
  
  <pre><code>#!/bin/bash
  logger "have more fun" &gt; /var/log/mycustomlog
  </code></pre>
  
  <p>It still logs to <code>/var/log/messages</code>.  It did create the <code>/var/log/mycustomlog</code>, but it's empty.</p>
  
  <p>Anyone see what I'm missing?</p>