4
golang logs.info 打印不准确
source link: https://studygolang.com/articles/32475
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
golang logs.info 打印不准确
東玖零 · 1天之前 · 62 次点击 · 预计阅读时间不到 1 分钟 · 不到1分钟之前 开始浏览由于beego的版本升级,beego.info被标识为过期方法,我们就更新成了logs.info
结果打印出来的日志定位到的文件不准确。
我在filter.go文件中打印了请求url及form参数,logs.Info("--工程唯一标识--", req.RequestURI, req.PostForm)
在日志中搜索 工程唯一标识 结果显示是在router.go:600
先记录一下,后面有时间找找原因。
有疑问加站长微信联系(非本文作者)
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:1006366459
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK