MCPcopy Index your code
hub / github.com/python/cpython / shouldFlush

Method shouldFlush

Lib/logging/handlers.py:1352–1359  ·  view source on GitHub ↗

Should the handler flush its buffer? Returns true if the buffer is up to capacity. This method can be overridden to implement custom flushing strategies.

(self, record)

Source from the content-addressed store, hash-verified

1350 self.buffer = []
1351
1352 def shouldFlush(self, record):
1353 """
1354 Should the handler flush its buffer?
1355
1356 Returns true if the buffer is up to capacity. This method can be
1357 overridden to implement custom flushing strategies.
1358 """
1359 return (len(self.buffer) >= self.capacity)
1360
1361 def emit(self, record):
1362 """

Callers 2

emitMethod · 0.95
test_builtin_handlersMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_builtin_handlersMethod · 0.76