Merge pull request #756 from matejb/patch-1

Fix Logger.WithField description
This commit is contained in:
David Bariod
2018-06-18 13:14:19 +02:00
committed by GitHub
+1 -1
View File
@@ -88,7 +88,7 @@ func (logger *Logger) releaseEntry(entry *Entry) {
}
// Adds a field to the log entry, note that it doesn't log until you call
// Debug, Print, Info, Warn, Fatal or Panic. It only creates a log entry.
// Debug, Print, Info, Warn, Error, Fatal or Panic. It only creates a log entry.
// If you want multiple fields, use `WithFields`.
func (logger *Logger) WithField(key string, value interface{}) *Entry {
entry := logger.newEntry()