Answers.Body: <p>Currently not without hacking the core files.</p>
  
  <p>It's on our list to make log routing more configurable for Craft 3, though.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-29T17:37:12.267Z
Answers.LastActivityDate: 2015-05-29T17:37:12.267Z
Answers.UserDisplayName: Brad Bell
Body: <p>I am trying to debug a "clean template cache" task that gets stuck. However, it only happens intermittently, and whenever I notice any errors has already been rotated out of the log files. </p>
  
  <p>Is there a way to set the <code>maxLogFiles</code> of the <code>FileLogRoute</code>?  either through the config files, or through php code in a plugin?</p>
  
  <p>(Setting <code>$rotateByCopy</code> to true would also be nice!)</p>
  
Tags: <config><logging>
Title: Is it possible to configure the FileLogRoute?
ThreadText: # Is it possible to configure the FileLogRoute?
  
  (Asked by: username_0 on 2015-05-29)
  
  I am trying to debug a "clean template cache" task that gets stuck. However, it only happens intermittently, and whenever I notice any errors has already been rotated out of the log files.
  
  Is there a way to set the `maxLogFiles` of the `FileLogRoute`? either through the config files, or through php code in a plugin?
  
  (Setting `$rotateByCopy` to true would also be nice!)
  
  **Tags:** config, logging
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-05-29. Score: 1 | Accepted answer
  
  Currently not without hacking the core files.
  
  It's on our list to make log routing more configurable for Craft 3, though.
  
  
  ---
  
  