diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-03-24 13:58:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 13:58:18 +0100 |
commit | 0275eed83d702d7edd07b71cda527b6140936b86 (patch) | |
tree | 8d3fe96b71775f2905c2186c746613d0ce00b377 /vendor/github.com/sirupsen/logrus/logger.go | |
parent | 3dbf2cb5aff67f82e486cd95aca170e44b8fc75a (diff) | |
parent | ee45149d33b69e8cbee02cdf431f086b343577f0 (diff) | |
download | podman-0275eed83d702d7edd07b71cda527b6140936b86.tar.gz podman-0275eed83d702d7edd07b71cda527b6140936b86.tar.bz2 podman-0275eed83d702d7edd07b71cda527b6140936b86.zip |
Merge pull request #5601 from containers/dependabot/go_modules/github.com/sirupsen/logrus-1.5.0
Bump github.com/sirupsen/logrus from 1.4.2 to 1.5.0
Diffstat (limited to 'vendor/github.com/sirupsen/logrus/logger.go')
-rw-r--r-- | vendor/github.com/sirupsen/logrus/logger.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/vendor/github.com/sirupsen/logrus/logger.go b/vendor/github.com/sirupsen/logrus/logger.go index c0c0b1e55..6fdda748e 100644 --- a/vendor/github.com/sirupsen/logrus/logger.go +++ b/vendor/github.com/sirupsen/logrus/logger.go @@ -68,10 +68,10 @@ func (mw *MutexWrap) Disable() { // `Out` and `Hooks` directly on the default logger instance. You can also just // instantiate your own: // -// var log = &Logger{ +// var log = &logrus.Logger{ // Out: os.Stderr, -// Formatter: new(JSONFormatter), -// Hooks: make(LevelHooks), +// Formatter: new(logrus.JSONFormatter), +// Hooks: make(logrus.LevelHooks), // Level: logrus.DebugLevel, // } // @@ -100,8 +100,9 @@ func (logger *Logger) releaseEntry(entry *Entry) { logger.entryPool.Put(entry) } -// Adds a field to the log entry, note that it doesn't log until you call -// Debug, Print, Info, Warn, Error, Fatal or Panic. It only creates a log entry. +// WithField allocates a new entry and adds a field to it. +// Debug, Print, Info, Warn, Error, Fatal or Panic must be then applied to +// this new returned entry. // If you want multiple fields, use `WithFields`. func (logger *Logger) WithField(key string, value interface{}) *Entry { entry := logger.newEntry() |