diff --git a/src/install/InstallMariaDB.py b/src/install/InstallMariaDB.py index c36b8c7..5fe4fd9 100644 --- a/src/install/InstallMariaDB.py +++ b/src/install/InstallMariaDB.py @@ -65,7 +65,7 @@ if __name__ == '__main__': logger.add( sink=os.path.join(log_dir, "InstallMariaDB_{time}.log"), # 文件路径模板 rotation="10 MB", # 文件大小达到10MB时轮转 - retention="1 days", # 保留最近30天的日志 + retention="1 days", # 保留最近1天的日志 compression="zip", # 压缩旧日志节省空间 enqueue=True, # 线程安全写入 format="{time:YYYY-MM-DD HH:mm:ss} | {level} | {message}" # 自定义格式 diff --git a/src/install/InstallOrUpgradeComacDB.py b/src/install/InstallOrUpgradeComacDB.py index f48f1bd..415662a 100644 --- a/src/install/InstallOrUpgradeComacDB.py +++ b/src/install/InstallOrUpgradeComacDB.py @@ -126,7 +126,7 @@ if __name__ == '__main__': logger.add( sink=os.path.join(log_dir, "InstallComacDB_{time}.log"), # 文件路径模板 rotation="10 MB", # 文件大小达到10MB时轮转 - retention="1 days", # 保留最近30天的日志 + retention="1 days", # 保留最近1天的日志 compression="zip", # 压缩旧日志节省空间 enqueue=True, # 线程安全写入 format="{time:YYYY-MM-DD HH:mm:ss} | {level} | {message}" # 自定义格式