feat: support user-defined configuration of log file size and retention count (#9610)
This commit is contained in:
parent
926609eb59
commit
c9dfe1ad92
5 changed files with 24 additions and 2 deletions
|
|
@ -17,8 +17,8 @@ def init_app(app: Flask):
|
|||
log_handlers = [
|
||||
RotatingFileHandler(
|
||||
filename=log_file,
|
||||
maxBytes=1024 * 1024 * 1024,
|
||||
backupCount=5,
|
||||
maxBytes=dify_config.LOG_FILE_MAX_SIZE * 1024 * 1024,
|
||||
backupCount=dify_config.LOG_FILE_BACKUP_COUNT,
|
||||
),
|
||||
logging.StreamHandler(sys.stdout),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue