title: php error_log() archive log files
body: <p>I have a cron script that outputs errors using <code>error_log()</code>. Sometimes, however, the log file can attain a large size. Does <code>error_log()</code> have native functions that automatically archive the log file after reaching a certain defined number of lines? I can write my own function to check the log file, but I would prefer using some native functions if there are any.</p>
  
  <p>Thank you.</p>