sirupsen / logrus

Structured, pluggable logging for Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is the purpose of `logrus.NewEntry(logger *Logger) *Entry`

http600 opened this issue · comments

Should I take it like

logger := logrus.New()
logger.Info("foo")

Or should I

logger := logrus.New()
entry := logrus.NewEntry(logger)
entry.Info("bar")

What is the meaning/intention of NewEntry

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 14 days since being marked as stale.