Skip to content

Commit

Permalink
Merge pull request #3 from vinxi/feat/log
Browse files Browse the repository at this point in the history
Promote interface change to master
  • Loading branch information
h2non committed Apr 14, 2016
2 parents 44044d3 + b2e51ce commit 9290746
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions interface.go
@@ -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{})
}

0 comments on commit 9290746

Please sign in to comment.