Skip to content

Commit

Permalink
pkg/logutil: add godoc on zap encoder field names
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
  • Loading branch information
gyuho committed Apr 26, 2018
1 parent 301fd65 commit 69c7041
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/logutil/zap_journald.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ type journaldWriter struct {
io.Writer
}

// WARN: assume that etcd uses default field names in zap encoder config
// make sure to keep this up-to-date!
type logLine struct {
Level string `json:"level"`
Caller string `json:"caller"`
Expand Down

0 comments on commit 69c7041

Please sign in to comment.