8000 [Logging] Document the Monolog `reset()` method for long running proc… · symfony/symfony-docs@d949325 · GitHub
[go: up one dir, main page]

Skip to content

Commit d949325

Browse files
94noniOskarStark
authored andcommitted
[Logging] Document the Monolog reset() method for long running processes
1 parent 7d667bc commit d949325

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
@@ -367,6 +367,14 @@ information to your log entries.
367367

368368
See :doc:`/logging/processors` for details.
369369

370+
Handling logs in long running processes
371+
---------------------------------------
372+
373+
During long running processes, logs can be accumulated into Monolog and cause some buffer overflow,
374+
memory increase or even non logical logs.
375+
Monolog in-memory data can be cleared using the ``reset()`` method on a ``Monolog\Logger`` instance.
376+
This should typically be called between every jobs/tasks that a long running process is working through.
377+
370378
Learn more
371379
----------
372380

0 commit comments

Comments
 (0)
0