diff options
author | richvdh <richvdh@users.noreply.github.com> | 2021-08-17 12:13:35 +0000 |
---|---|---|
committer | richvdh <richvdh@users.noreply.github.com> | 2021-08-17 12:13:35 +0000 |
commit | 97c2af7a15fc5afc47625da1551fa4985cc5fb85 (patch) | |
tree | d8ca8656eee2ace5050199d04b59fb488839e0d7 /v1.41/print.html | |
parent | deploy: 642a42eddece60afbbd5e5a6659fa9b939238b4a (diff) | |
download | synapse-97c2af7a15fc5afc47625da1551fa4985cc5fb85.tar.xz |
deploy: 5f7b1e1f276fdd25304ff06076e1cd77cf3a9640
Diffstat (limited to 'v1.41/print.html')
-rw-r--r-- | v1.41/print.html | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/v1.41/print.html b/v1.41/print.html index 154a6789f0..3307812381 100644 --- a/v1.41/print.html +++ b/v1.41/print.html @@ -5791,18 +5791,31 @@ handlers: backupCount: 3 # Does not include the current log file. encoding: utf8 - # Default to buffering writes to log file for efficiency. This means that - # will be a delay for INFO/DEBUG logs to get written, but WARNING/ERROR - # logs will still be flushed immediately. + # Default to buffering writes to log file for efficiency. + # WARNING/ERROR logs will still be flushed immediately, but there will be a + # delay (of up to `period` seconds, or until the buffer is full with + # `capacity` messages) before INFO/DEBUG logs get written. 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 + + # The capacity is the maximum number of log lines that are buffered + # before being written to disk. Increasing this will lead to better # performance, at the expensive of it taking longer for log lines to # be written to disk. + # This parameter is required. capacity: 10 - flushLevel: 30 # Flush for WARNING logs as well + + # Logs with a level at or above the flush level will cause the buffer to + # be flushed immediately. + # Default value: 40 (ERROR) + # Other values: 50 (CRITICAL), 30 (WARNING), 20 (INFO), 10 (DEBUG) + flushLevel: 30 # Flush immediately for WARNING logs and higher + + # The period of time, in seconds, between forced flushes. + # Messages will not be delayed for longer than this time. + # Default value: 5 seconds + period: 5 # A handler that writes logs to stderr. Unused by default, but can be used # instead of "buffer" and "file" in the logger handlers. |