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

Method namer

Lib/test/test_logging.py:6470–6471  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

6468
6469 def test_rollover_filenames(self):
6470 def namer(name):
6471 return name + ".test"
6472 rh = logging.handlers.RotatingFileHandler(
6473 self.fn, encoding="utf-8", backupCount=2, maxBytes=1)
6474 rh.namer = namer

Callers 2

rotation_filenameMethod · 0.45
getFilesToDeleteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected