From 3fb812cf01f593750a673069633c26488f412824 Mon Sep 17 00:00:00 2001 From: RogerWork Date: Tue, 20 Feb 2024 09:39:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=20uvicorn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uvicorn_config.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/uvicorn_config.json b/uvicorn_config.json index b51ff91..5292bcc 100644 --- a/uvicorn_config.json +++ b/uvicorn_config.json @@ -16,12 +16,14 @@ "default": { "formatter": "default", "class": "logging.StreamHandler", - "stream": "ext://sys.stderr" + "stream": "ext://sys.stderr", + "filename": "/var/log/uvicorn.log" }, "access": { "formatter": "access", "class": "logging.StreamHandler", - "stream": "ext://sys.stdout" + "stream": "ext://sys.stdout", + "filename": "/var/log/uvicorn.log" } }, "loggers": {