Bumping log backup count to 6
This commit is contained in:
parent
dbb9954a7b
commit
757d356f08
@ -109,7 +109,7 @@ def _create_timed_rotating_logger(name):
|
|||||||
logger.setLevel(logging.DEBUG)
|
logger.setLevel(logging.DEBUG)
|
||||||
handler = TimedRotatingFileHandlerWithCurrentTimestamp(
|
handler = TimedRotatingFileHandlerWithCurrentTimestamp(
|
||||||
default_logger_location % name, when='midnight', interval=1,
|
default_logger_location % name, when='midnight', interval=1,
|
||||||
backupCount=3)
|
backupCount=6)
|
||||||
formatter = logging.Formatter(
|
formatter = logging.Formatter(
|
||||||
'%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
'%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
||||||
handler.setFormatter(formatter)
|
handler.setFormatter(formatter)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user