TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Any recommendation for structured logging library in Golang?

2 点作者 chrislusf超过 4 年前
I am considering moving from glog to structured logging. I tried logrus. But it is missing file name and line number by default. I could not find a good 3rd party plugin for this either.<p>I just want to show the correct file name(need to pop out a few call stacks) and line number in a customizable format, not as key-value pair for each line.<p>Please let me know the one you actually use.

2 条评论

kakkoyun超过 4 年前
According to my experience go-kit logger is the best <a href="https:&#x2F;&#x2F;github.com&#x2F;go-kit&#x2F;kit&#x2F;tree&#x2F;master&#x2F;log" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;go-kit&#x2F;kit&#x2F;tree&#x2F;master&#x2F;log</a>. Simple and efficient.
评论 #25131562 未加载
评论 #25126934 未加载
verdverm超过 4 年前
uber&#x2F;zap is highly regarded and used