fix(Formatter): reset KeyValue formatter for each new entry
This commit is contained in:
parent
0819e83691
commit
ea0d68e881
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ func NewFormatterKeyValue() *FormatterKeyValue {
|
|||
func (formatter *FormatterKeyValue) Begin(entry *Entry) {
|
||||
// reset builder
|
||||
formatter.builder.Reset()
|
||||
formatter.isFirstKVWritten = false
|
||||
|
||||
// add timestamp
|
||||
formatter.addKV("time", entry.Time.Format(formatter.TimeFormat))
|
||||
|
|
Loading…
Add table
Reference in a new issue