Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from vinxi/feat/log
Promote interface change to master
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package log | ||
|
||
import ( | ||
log "gopkg.in/Sirupsen/logrus.v0" | ||
) | ||
|
||
// Interface represents the API of both Logger and Entry. | ||
type Interface interface { | ||
WithFields(fields log.Fields) *log.Entry | ||
WithField(key string, value interface{}) *log.Entry | ||
WithError(err error) *log.Entry | ||
Debug(...interface{}) | ||
Info(...interface{}) | ||
Warn(...interface{}) | ||
Error(...interface{}) | ||
Fatal(...interface{}) | ||
Debugf(msg string, v ...interface{}) | ||
Infof(msg string, v ...interface{}) | ||
Warnf(msg string, v ...interface{}) | ||
Errorf(msg string, v ...interface{}) | ||
Fatalf(msg string, v ...interface{}) | ||
} |