You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
When output is colored and SortingFunc specified, it works incorrect in first log message and output fields may be printed in random order. Example on screenshot
It happens because terminal initialization placed after sort https://github.com/sirupsen/logrus/blob/master/text_formatter.go#L196. Sorting logic checks output is colored and when terminal not initialized it defined as not colored, so custom keys sorts with fixed and writes in fixed keys. After that in printing method sends variable keys which not sorted.
The text was updated successfully, but these errors were encountered:
Hi!
When output is colored and SortingFunc specified, it works incorrect in first log message and output fields may be printed in random order. Example on screenshot
It happens because terminal initialization placed after sort https://github.com/sirupsen/logrus/blob/master/text_formatter.go#L196. Sorting logic checks output is colored and when terminal not initialized it defined as not colored, so custom keys sorts with fixed and writes in fixed keys. After that in printing method sends variable keys which not sorted.
The text was updated successfully, but these errors were encountered: