NewEntry returns new entry for logrus logger.
(logger *Logger)
| 27 | |
| 28 | // NewEntry returns new entry for logrus logger. |
| 29 | func NewEntry(logger *Logger) *Entry { |
| 30 | return &Entry{ |
| 31 | Logger: (*logrus.Logger)(logger), |
| 32 | // Default is five fields, give a little extra room |
| 33 | Data: make(logrus.Fields, 5), |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | // Returns the string representation from the reader and ultimately the formatter. |
| 38 | func (entry *Entry) String() (string, error) { |
no outgoing calls