sirupsen / logrus

Structured, pluggable logging for Go.
MIT License
24.76k stars 2.27k forks source link

update comment #1356

Open olegromanchuk opened 2 years ago

olegromanchuk commented 2 years ago

A custom log formatter doesn't work with this info from formatter.go. Used entry.Time, entry.Level, entry.Message instead.

// * `entry.Data["msg"]`. The message passed from Info, Warn, Error ..
// * `entry.Data["time"]`. The timestamp.
// * `entry.Data["level"]. The level the entry was logged at.