Package list golang-github-go-kit-kit / 2755cec
Add clarifying sentence to NewInjector docs. Chris Hines 4 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
123123 }
124124
125125 // NewInjector wraps next and returns a logger that adds a Key/level pair to
126 // the beginning of log events that don't already contain a level.
126 // the beginning of log events that don't already contain a level. In effect,
127 // this gives a default level to logs without a level.
127128 func NewInjector(next log.Logger, level Value) log.Logger {
128129 return &injector{
129130 next: next,