summary refs log tree commit diff
path: root/develop/usage
diff options
context:
space:
mode:
authorreivilibre <reivilibre@users.noreply.github.com>2021-07-27 13:32:28 +0000
committerreivilibre <reivilibre@users.noreply.github.com>2021-07-27 13:32:28 +0000
commit81a6e79ab9044b9e3e49fe4f13a5573d07cd70c3 (patch)
tree061c516327141fa2fbcedbc0c68e44d67f2826bc /develop/usage
parentdeploy: 89c4ca81bb597159e456449c548ba3f166843ddc (diff)
downloadsynapse-81a6e79ab9044b9e3e49fe4f13a5573d07cd70c3.tar.xz
deploy: e16eab29d671504144f4185d4738e5bfd7a3a2c6
Diffstat (limited to 'develop/usage')
-rw-r--r--develop/usage/configuration/logging_sample_config.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/develop/usage/configuration/logging_sample_config.html b/develop/usage/configuration/logging_sample_config.html
index 0aed5403c6..906fe268fa 100644
--- a/develop/usage/configuration/logging_sample_config.html
+++ b/develop/usage/configuration/logging_sample_config.html
@@ -220,7 +220,7 @@ handlers:
     # will be a delay for INFO/DEBUG logs to get written, but WARNING/ERROR
     # logs will still be flushed immediately.
     buffer:
-        class: logging.handlers.MemoryHandler
+        class: synapse.logging.handlers.PeriodicallyFlushingMemoryHandler
         target: file
         # The capacity is the number of log lines that are buffered before
         # being written to disk. Increasing this will lead to better
@@ -228,6 +228,9 @@ handlers:
         # be written to disk.
         capacity: 10
         flushLevel: 30  # Flush for WARNING logs as well
+        # The period of time, in seconds, between forced flushes.
+        # Messages will not be delayed for longer than this time.
+        period: 5
 
     # A handler that writes logs to stderr. Unused by default, but can be used
     # instead of &quot;buffer&quot; and &quot;file&quot; in the logger handlers.