title: how to set max size for log file using monolog
body: <p>I used monolog and do not know how to set the maximum file log size.</p>
  
  <p>i was try with MemoryPeakUsageProcessor, but i think my code is wrong:</p>
  
  <pre><code>$formatter = new LineFormatter(
              null, // Format of message in log, default [%datetime%] %channel%.%level_name%: %message% %context% %extra%\n
              null, // Datetime format
              true, // allowInlineLineBreaks option, default false
              true  // ignoreEmptyContextAndExtra option, default false
          );
  $logger = new Logger($logName);
  $logSize= new Monolog\Processor\MemoryPeakUsageProcessor(20);
  $logger-&gt;pushProcessor($logSize);
  $stream = new RotatingFileHandler(__DIR__.'./../../app.log',1);
  $stream-&gt;setFormatter($formatter);
  $logger-&gt;pushHandler($stream);
  </code></pre>
  
  <p>but max size do not set.When the capacity is exceeded, it does not delete or empty my log file</p>