fix some typos

This commit is contained in:
Markus Zimmermann 2014-10-16 14:39:13 +02:00
parent 965349de21
commit 5573f97efc
3 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ import (
"time" "time"
) )
// An entry is the final or intermediate Logrus logging entry. It containts all // An entry is the final or intermediate Logrus logging entry. It contains all
// the fields passed with WithField{,s}. It's finally logged when Debug, Info, // the fields passed with WithField{,s}. It's finally logged when Debug, Info,
// Warn, Error, Fatal or Panic is called on it. These objects can be reused and // Warn, Error, Fatal or Panic is called on it. These objects can be reused and
// passed around as much as you wish to avoid field duplication. // passed around as much as you wish to avoid field duplication.

View File

@ -96,7 +96,7 @@ func Fatal(args ...interface{}) {
std.Fatal(args...) std.Fatal(args...)
} }
// Debugf logs a message at level Debugf on the standard logger. // Debugf logs a message at level Debug on the standard logger.
func Debugf(format string, args ...interface{}) { func Debugf(format string, args ...interface{}) {
std.Debugf(format, args...) std.Debugf(format, args...)
} }
@ -126,7 +126,7 @@ func Errorf(format string, args ...interface{}) {
std.Errorf(format, args...) std.Errorf(format, args...)
} }
// Panicf logs a message at level Pancf on the standard logger. // Panicf logs a message at level Panic on the standard logger.
func Panicf(format string, args ...interface{}) { func Panicf(format string, args ...interface{}) {
std.Panicf(format, args...) std.Panicf(format, args...)
} }

View File

@ -24,7 +24,7 @@ type Formatter interface {
// //
// {"level": "info", "fields.level": 1, "msg": "hello", "time": "..."} // {"level": "info", "fields.level": 1, "msg": "hello", "time": "..."}
// //
// It's not exported because it's still using Data in an opionated way. It's to // It's not exported because it's still using Data in an opinionated way. It's to
// avoid code duplication between the two default formatters. // avoid code duplication between the two default formatters.
func prefixFieldClashes(entry *Entry) { func prefixFieldClashes(entry *Entry) {
_, ok := entry.Data["time"] _, ok := entry.Data["time"]