title: syslog command in C code
body: <pre><code>#include&lt;syslog.h&gt;
  syslog(LOG_INFO, "Start logging");
  </code></pre>
  
  <p>The above syslog command is not logging in the syslog. So I tried, </p>
  
  <pre><code>openlog("Logs", "", LOG_USER);
  syslog(LOG_INFO, "Start logging");
  closelog();
  </code></pre>
  
  <p>This fails to log anything and I get the following error:</p>
  
  <pre><code>syslog: unknown facility/priority: 8049584
  </code></pre>