Skip to content

Commit 3802b6c

Browse files
committed
chore: 给 logging 一个日志存储情况
1 parent f7c4763 commit 3802b6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/logger.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ def emit(self, record):
119119
#logging.getLogger("uvicorn.error").handlers = [InterceptHandler()]
120120
#logging.getLogger("engineio.client").handlers = [DebugHandler()]
121121
#logging.getLogger("socketio.client").handlers = [DebugHandler()]
122-
122+
logging.basicConfig(
123+
filename="./logs/logging.log"
124+
)
123125

124126

125127

0 commit comments

Comments
 (0)