Skip to content

Commit e7c984f

Browse files
committed
Slight re-wording of new paragraph with the goal of being as short as possible
1 parent a613c7a commit e7c984f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

cookbook/logging/monolog.rst

+8-9
Original file line numberDiff line numberDiff line change
@@ -225,15 +225,14 @@ easily. Your formatter must implement
225225
How to Rotate your Log Files
226226
----------------------------
227227

228-
Beware that log file sizes can grow very rapidly, leading to disk space exhaustion.
229-
This is specially true in the ``dev`` environment, where a simple request can
230-
generate hundreds of log lines. Consider using tools like the `logrotate`_
231-
Linux command to rotate log files before they become a problem.
232-
233-
In case you cannot use a dedicated tool for rotating log files, consider using
234-
the special ``rotating_file`` handler defined by Monolog. This handler creates
235-
a new log file every day and can also remove old files automatically. To use
236-
it, just set the ``type`` option of your handler to ``rotating_file``:
228+
Over time, log files can grow to be *huge*, both while developing and on
229+
production. One best-practice solution is to use a tool like the `logrotate`_
230+
Linux command to rotate log files before they become too large.
231+
232+
Another option is to have Monolog rotate the files for you by using the
233+
``rotating_file`` handler. This handler creates a new log file every day
234+
and can also remove old files automatically. To use it, just set the ``type``
235+
option of your handler to ``rotating_file``:
237236

238237
.. configuration-block::
239238

0 commit comments

Comments
 (0)