Skip to content

Commit b2f258a

Browse files
committed
Merge branch '5.4' into 6.2
* 5.4: Reformatting [Logging] Document the Monolog `reset()` method for long running processes
2 parents 49238cb + 80d56a0 commit b2f258a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

logging.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,15 @@ information to your log entries.
381381

382382
See :doc:`/logging/processors` for details.
383383

384+
Handling Logs in Long Running Processes
385+
---------------------------------------
386+
387+
During long running processes, logs can be accumulated into Monolog and cause some
388+
buffer overflow, memory increase or even non logical logs. Monolog in-memory data
389+
can be cleared using the ``reset()`` method on a ``Monolog\Logger`` instance.
390+
This should typically be called between every job or task that a long running process
391+
is working through.
392+
384393
Learn more
385394
----------
386395

0 commit comments

Comments
 (0)