8000 minor #16609 [Logging] Document the Monolog `reset()` method for long… · symfony/symfony-docs@59b5689 · GitHub
[go: up one dir, main page]

Skip to content

Commit 59b5689

Browse files
committed
minor #16609 [Logging] Document the Monolog reset() method for long running processes (94noni)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Logging] Document the Monolog `reset()` method for long running processes Close #15086 Commits ------- d949325 [Logging] Document the Monolog `reset()` method for long running processes
2 parents cc0d134 + d949325 commit 59b5689

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

logging.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,14 @@ 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 buffer overflow,
388+
memory increase or even non logical logs.
389+
Monolog in-memory data can be cleared using the ``reset()`` method on a ``Monolog\Logger`` instance.
390+
This should typically be called between every jobs/tasks that a long running process is working through.
391+
384392
Learn more
385393
----------
386394

0 commit comments

Comments
 (0)
0