MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / doRollover

Method doRollover

fastdeploy/logger/handlers.py:300–314  ·  view source on GitHub ↗

scroll log

(self)

Source from the content-addressed store, hash-verified

298 return False
299
300 def doRollover(self):
301 """
302 scroll log
303 """
304 if self.stream:
305 self.stream.close()
306 self.stream = None
307
308 self.current_filename = self._compute_fn()
309 self.current_log_path = self.base_log_path.with_name(self.current_filename)
310
311 if not self.delay:
312 self.stream = self._open()
313
314 self.delete_expired_files()
315
316 def _compute_fn(self):
317 """

Callers

nothing calls this directly

Calls 4

_compute_fnMethod · 0.95
_openMethod · 0.95
delete_expired_filesMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected