Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite7c984f

Browse files
committed
Slight re-wording of new paragraph with the goal of being as short as possible
1 parenta613c7a commite7c984f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

‎cookbook/logging/monolog.rst

Lines changed: 8 additions & 9 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp