This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,17 @@ handlers:
28
28
# will be a delay for INFO/DEBUG logs to get written, but WARNING/ERROR
29
29
# logs will still be flushed immediately.
30
30
buffer :
31
- class : logging.handlers.MemoryHandler
31
+ class : synapse. logging.handlers.PeriodicallyFlushingMemoryHandler
32
32
target : file
33
33
# The capacity is the number of log lines that are buffered before
34
34
# being written to disk. Increasing this will lead to better
35
35
# performance, at the expensive of it taking longer for log lines to
36
36
# be written to disk.
37
37
capacity : 10
38
38
flushLevel : 30 # Flush for WARNING logs as well
39
+ # The period of time, in seconds, between forced flushes.
40
+ # Messages will not be delayed for longer than this time.
41
+ period : 5
39
42
40
43
# A handler that writes logs to stderr. Unused by default, but can be used
41
44
# instead of "buffer" and "file" in the logger handlers.
Original file line number Diff line number Diff line change 71
71
# will be a delay for INFO/DEBUG logs to get written, but WARNING/ERROR
72
72
# logs will still be flushed immediately.
73
73
buffer:
74
- class: logging.handlers.MemoryHandler
74
+ class: synapse. logging.handlers.PeriodicallyFlushingMemoryHandler
75
75
target: file
76
76
# The capacity is the number of log lines that are buffered before
77
77
# being written to disk. Increasing this will lead to better
78
78
# performance, at the expensive of it taking longer for log lines to
79
79
# be written to disk.
80
80
capacity: 10
81
81
flushLevel: 30 # Flush for WARNING logs as well
82
+ # The period of time, in seconds, between forced flushes.
83
+ # Messages will not be delayed for longer than this time.
84
+ period: 5
82
85
83
86
# A handler that writes logs to stderr. Unused by default, but can be used
84
87
# instead of "buffer" and "file" in the logger handlers.
You can’t perform that action at this time.
0 commit comments