uber-go/zap

Dev: Colored console output

開放

#489 建立於 2017年8月15日

 (10 則留言) (28 個反應) (0 位負責人)Go (1,448 個分叉)batch import
help wanted

倉庫指標

星標
 (22,391 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

We should color the output under the development config for better readability in a console.

Some ideas,

  • Color log lines based on levels
  • Use a muted color for stack traces belonging to vendored dependencies and something brighter for the main application
  • Color keys and values for key-value pairs differently

貢獻者指南