title: Rotate files created by nxlog
body: <p>I am using nxlog-ce on Windows Server 2012 R2. </p>
  
  <p>nxlog is outputting two txt files. </p>
  
  <p>I would like to rotate these two files every hour. I want the active log to maintain the same name,  logfileA.txt logfileB.txt and new rotated files to be created logfileA.txt.2 logfileB.txt.2 </p>
  
  <p>I only ever want there to be two files for each log logfileA.txt and logfileA.txt.2   but never a logfileA.txt.3</p>
  
  <p>Here are the important parts from my current nxlog.config</p>
  
  <pre><code>define LOGFILE_Atxt C:\test\logfileA.txt
  define LOGFILE_Btxt C:\test\logfileB.txt 
  
  
  &lt;Extension fileop&gt;
      Module      xm_fileop
      &lt;Schedule&gt;
          Every 1 hour
          Exec    file_cycle('%LOGFILE_Atxt%', 2);
          Exec    file_cycle('%LOGFILE_Btxt%', 2);
      &lt;/Schedule&gt;
  &lt;/Extension&gt;
  
  
  &lt;Output loga_out&gt;
      Module      om_file
      file        'c:\test\logfileA.txt'
      CreateDir   TRUE
  &lt;/Output&gt;   
  
  &lt;Output logb_out&gt;
      Module      om_file
      file        'c:\test\logfileB.txt'
      CreateDir   TRUE
  &lt;/Output&gt;   
  
  &lt;Route loga_route&gt;
      Path        loga_input =&gt; loga_out
  &lt;/Route&gt;
  &lt;Route logb_route&gt;
      Path        logb_input =&gt; logb_out
  &lt;/Route&gt;
  </code></pre>
  
  <p>In this configuration, when the nxlog service starts it immediately creates logfileA.txt.1 and logfileB.txt.1
  However, the system never rotates the logs. logfileA.txt.2 and logfileB.txt.2 are never created. </p>
  
  <p>I am having trouble finding resources covering how to setup log rotation with nxlog. </p>
  
  <p>Any help is greatly appreciated. Thank you! </p>