@@ -253,7 +253,7 @@ func (f Formatter) flatten(buf *bytes.Buffer, kvList []interface{}, continuing b
253
253
buf .WriteByte (',' )
254
254
} else {
255
255
// In theory the format could be something we don't understand. In
256
- // practice, we control it, so it won't
256
+ // practice, we control it, so it won't be.
257
257
buf .WriteByte (' ' )
258
258
}
259
259
}
@@ -520,8 +520,8 @@ func (f Formatter) GetDepth() int {
520
520
return f .depth
521
521
}
522
522
523
- // FormatInfo flattens an Info log message into strings.
524
- // The prefix will be empty when no names were set, or when the output is
523
+ // FormatInfo renders an Info log message into strings. The prefix will be
524
+ // empty when no names were set (via AddNames) , or when the output is
525
525
// configured for JSON.
526
526
func (f Formatter ) FormatInfo (level int , msg string , kvList []interface {}) (prefix , argsStr string ) {
527
527
args := make ([]interface {}, 0 , 64 ) // using a constant here impacts perf
@@ -540,8 +540,8 @@ func (f Formatter) FormatInfo(level int, msg string, kvList []interface{}) (pref
540
540
return prefix , f .render (args , kvList )
541
541
}
542
542
543
- // FormatError flattens an Error log message into strings.
544
- // The prefix will be empty when no names were set, or when the output is
543
+ // FormatError renders an Error log message into strings. The prefix will be
544
+ // empty when no names were set (via AddNames) , or when the output is
545
545
// configured for JSON.
546
546
func (f Formatter ) FormatError (err error , msg string , kvList []interface {}) (prefix , argsStr string ) {
547
547
args := make ([]interface {}, 0 , 64 ) // using a constant here impacts perf
0 commit comments