-
找了一圈好像没有找到可用的方案,不确定是不是哪里看漏了( |
Beta Was this translation helpful? Give feedback.
Answered by
H-Elden
Jan 24, 2025
Replies: 2 comments 3 replies
Answer selected by
qwedc001
-
如果你只是需要日志,不需要自定义输出,你只需要重定向 stdout 到文件就可以了。例如 linux 上直接: nb run | tee xxx.log |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
参见Nonebot文档中自定义日志输出,这需要你手动创建一个机器人入口文件。