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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy