title: Serilog - RollingFile Sink rolling fails based on the size
body: <p>I am using Serilog.Sinks.File with version 3.2.0. and I would like to  roll-over logs based on the size. Currently, my 'fileSizeLimitBytes' is set 2000 bytes. When the log file size reaches the limit set in 'fileSizeLimitBytes', it does not roll-over fails and fails to log the messages. How can I roll-over the log file based on the size?</p>
  <p>logging.json</p>
  <pre><code>&quot;WriteTo&quot;: [
          {
              &quot;Name&quot;: &quot;Console&quot;,
              &quot;Args&quot;: {
                &quot;outputTemplate&quot;: &quot;[{Timestamp:HH:mm:ss} {Level}][{ThreadId}]  {SourceContext}{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}&quot;
              }
          },
          {
            &quot;Name&quot;: &quot;File&quot;,
            &quot;Args&quot;: {
              &quot;path&quot;: &quot;Logs\\Test.log&quot;,
              &quot;formatter&quot;:&quot;Serilog.Formatting.Json.JsonFormatter, Serilog&quot;,
              &quot;rollingInterval&quot;: &quot;Day&quot;,
              &quot;restrictedToMinimumLevel&quot;: &quot;Debug&quot;,
              &quot;retainedFileCountLimit&quot;: 5 ,
              &quot;fileSizeLimitBytes&quot;: 2000
            }
         }
  </code></pre>