-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
群辉NAS 日志不显示,如何设置日志输出到文件,这样后期可以查看 #101
Comments
不太理解,按 docker 的官方文档所述:
也就是我只要把日志打到标准输出就理应能正常被 docker logs 捕获,是群晖 NAS 有做什么额外魔改,导致我必须要在程序侧做修改才能适配它的 log? |
具体我也不懂,就是群辉NAS 7.2系统,docker里看不到日志,所以可否设置输出日志为文件,这样后期可以排查和维护 |
如果要把日志输出到文件,直接重定向 stdout 和 stderr 到文件应该就可以了。 ENTRYPOINT [ "/app/bili-sync-rs" ] 基本逻辑是在启动命令后追加 |
让朋友试了试,去掉 compose 文件中的: logging:
driver: "local" 应该就可以了。 |
群辉NAS 日志不显示,如何设置日志输出到文件,这样后期可以查看
The text was updated successfully, but these errors were encountered: