title: Syslog and daily files in C
body: <p>I configured /etc/syslog.conf:</p>
  <pre><code>local0.debug /custom/path/log/app.log
  </code></pre>
  <p>so that syslog logs to a custom log file.</p>
  <pre><code>openlog(&quot;app&quot;, LOG_PID, LOG_LOCAL0);
  </code></pre>
  <p>Now I would also like syslog to create a different file each day, e.g.:</p>
  <p>/custom/path/log/20210204_app.log</p>
  <p>/custom/path/log/20210205_app.log</p>
  <p>How can I do this?</p>