Skip to content

Conversation

@ztelliot
Copy link
Contributor

@ztelliot ztelliot commented Dec 1, 2023

@1379
Copy link
Contributor

1379 commented Dec 5, 2023

现在已经支持配置日志等级了,新增加的LogMode是不是和之前功能有些重复呢

@ztelliot
Copy link
Contributor Author

ztelliot commented Dec 5, 2023

是这样的,现在只有在 mode 为 development 才会直接输出日志到命令行,但在容器部署的时候输出到命令行比存文件里看日志更方便,就加了个 LogMode 来控制输出到文件还是命令行

@1379
Copy link
Contributor

1379 commented Dec 5, 2023

开启了Dev模式也会输出到std out 的

@ztelliot
Copy link
Contributor Author

ztelliot commented Dec 5, 2023

开了 dev 还会加 cors 头,还是想只输出日志不影响其他功能

@jakezhu9 jakezhu9 merged commit 5089665 into go-sonic:master Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants