Go kit - Frequently asked questions https://gokit.io/faq/

Logging — Why is package log so different?

Experience has taught us that a good logging package should be based on a minimal interface and should enforce so-called structured logging. Based on these invariants, Go kit’s package log has evolved through many design iterations, extensive benchmarking, and plenty of real-world use to arrive at its current state.

With a well-defined core contract, ancillary concerns like levels, colorized output, and synchronization can be easily bolted on using the familiar decorator pattern. It may feel a little unfamiliar at first, but we believe package log strikes the ideal balance between usability, maintainability, and performance.

For more details on the evolution of package log, see issues and PRs 6376131157, and 252. For more on logging philosophy, see The Hunt for a Logger InterfaceLet’s talk about logging, andLogging v. instrumentation.

Logging — How should I aggregate my logs?

Collecting, shipping, and aggregating logs is the responsibility of the platform, not individual services. So, just make sure you’re writing logs to stdout/stderr, and let another component handle the rest.

最新文章

  1. Android之自定义View的实现
  2. 二、JSP、servlet、SQL三者之间的数据传递(前台与后台数据交互)
  3. Linux下的Finger指令
  4. Android ShapeDrawable无法上色
  5. 【BZOJ 1030】【JSOI 2007】文本生成器 AC自动机+递推
  6. 块级元素和内联元素的区别(HTML)
  7. Appium for Mac 环境准备篇
  8. 文件浏览器及数码相框 -2.3.2-freetype_arm-1
  9. 【转载】Ext中关于Ext.QuickTips.init()的使用
  10. opencv 手势识别
  11. Windows下搭建Eclipse+Android4.0开发环境
  12. A Byte of Python 笔记(3)运算符和表达式
  13. Django Url编码问题
  14. 解决Oracle 11gR2 空闲连接过多,导致连接数满的问题
  15. Apple Watch 1.0 开发介绍 2.1 WatchKit Apps UI要点
  16. Android基础之——MacOSX下elipse开发环境的配置
  17. Fiddler使用简单介绍
  18. SQLServer之FOREIGN KEY约束
  19. JavaWeb(一)-Servlet中的Config和Context
  20. Python计算器实操

热门文章

  1. ASP.NET网站部署到服务器IIS上和本地局域网服务器
  2. 【SpringBoot—注解】@requestBody 与@requestparam;@requestBody的加与不加的区别
  3. 服务器运行jupyter,本地浏览器打开
  4. [leetcode]380. Insert Delete GetRandom O(1)设计数据结构,实现存,删,随机取的时间复杂度为O(1)
  5. request常用方法servlet初步
  6. cmake - 可执行文件
  7. Spring boot JPA读取数据库方法
  8. PO,BO,VO,DTO,POJO,DAO,DO是什么?
  9. 初识 D3.js :打造专属可视化
  10. 7.shell脚本编程