docs/core/glog-json #108
Replies: 2 comments 5 replies
-
能否输出阅读性更高的json格式,类似于g.Dump()。 {
"uid":100,
"name":"john"
} |
Beta Was this translation helpful? Give feedback.
3 replies
-
json格式输出可以这样,把所有字段都放到json里 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
docs/core/glog-json
使用GoFrame框架中的glog组件以JSON格式输出日志,适合日志分析工具解析。您将学习如何通过map或struct参数实现JSON日志格式输出,以及结合gjson.MustEncode方法实现更复杂的JSON内容输出。
https://goframe.org/docs/core/glog-json
Beta Was this translation helpful? Give feedback.
All reactions