File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -225,15 +225,14 @@ easily. Your formatter must implement
225
225
How to Rotate your Log Files
226
226
----------------------------
227
227
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 ``:
237
236
238
237
.. configuration-block ::
239
238
You can’t perform that action at this time.
0 commit comments