Home
last modified time | relevance | path

Searched refs:backupCount (Results 1 – 6 of 6) sorted by relevance

/third_party/python/Lib/logging/
Dhandlers.py124 def __init__(self, filename, mode='a', maxBytes=0, backupCount=0, argument
158 self.backupCount = backupCount
167 if self.backupCount > 0:
168 for i in range(self.backupCount - 1, 0, -1):
210 def __init__(self, filename, when='h', interval=1, backupCount=0, argument
217 self.backupCount = backupCount
394 if len(result) < self.backupCount:
398 result = result[:len(result) - self.backupCount]
432 if self.backupCount > 0:
/third_party/python/Doc/library/
Dlogging.handlers.rst242 ``backupCount`` parameter passed to the handler's initializer) by determining
314 .. class:: RotatingFileHandler(filename, mode='a', maxBytes=0, backupCount=0, encoding=None, delay=…
323 You can use the *maxBytes* and *backupCount* values to allow the file to
327 *maxBytes* or *backupCount* is zero, rollover never occurs, so you generally want
328 to set *backupCount* to at least 1, and have a non-zero *maxBytes*.
329 When *backupCount* is non-zero, the system will save old log files by appending
330 the extensions '.1', '.2' etc., to the filename. For example, with a *backupCount*
365 .. class:: TimedRotatingFileHandler(filename, when='h', interval=1, backupCount=0, encoding=None, d…
410 If *backupCount* is nonzero, at most *backupCount* files
Dlogging.config.rst308 backupCount: 3
314 ``filename='logconfig.log', maxBytes=1024, backupCount=3``.
/third_party/python/Lib/test/
Dtest_logging.py5229 self.fn, encoding="utf-8", backupCount=2, maxBytes=1)
5250 self.fn, encoding="utf-8", backupCount=2, maxBytes=1)
5273 self.fn, encoding="utf-8", backupCount=2, maxBytes=1)
5308 os.devnull, 'S', encoding="utf-8", backupCount=1)
5317 self.fn, 'S', encoding="utf-8", backupCount=1)
5370 self.fn, encoding="utf-8", when='MIDNIGHT', interval=1, backupCount=0,
5391 self.fn, encoding="utf-8", when='W%d' % day, interval=1, backupCount=0,
5438 backupCount=7,
5484 self.fn, encoding="utf-8", when=when, interval=1, backupCount=0, utc=True)
/third_party/python/Doc/howto/
Dlogging-cookbook.rst1032 LOG_FILENAME, maxBytes=20, backupCount=5)
/third_party/python/Doc/whatsnew/
D2.7.rst486 'handlers': {'netlog': {'backupCount': 10,