logging.conf: avoid empty file creation

Keeps the larger size from previous commit, but sets `delay=True` in `RotatingFileHandler`
https://docs.python.org/3/library/logging.handlers.html#logging.handlers.RotatingFileHandler

Arguments are:
`RotatingFileHandler(filename, mode='a', maxBytes=0, backupCount=0, encoding=None, delay=False, errors=None)`
LT1AB
Scott Staniewicz 2021-05-26 16:37:50 -05:00 committed by GitHub
parent 673dc04fcb
commit 6fdfd1365e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ propagate=0
[handler_fileHandler]
class=handlers.RotatingFileHandler
formatter=simpleFormatter
# Filename, file mode, maximum file size in bytes,number of backups to keep
args=('isce.log','a',1000048576,5)
# Filename, file mode, maximum file size in bytes,number of backups to keep, encoding, delay creation
args=('isce.log','a',1000048576,5,None,True)
[handler_consoleHandler]
class=StreamHandler