Browse Source

Round out logging interface with functions for all levels

pull/1432/head
Andy Lindeman 7 years ago
parent
commit
34c7cfaf82
No known key found for this signature in database
GPG Key ID: 51BA0CABE97B9FE4
  1. 3
      pkg/log/logger.go

3
pkg/log/logger.go

@ -6,10 +6,13 @@ package log
// Logger serves as an adapter interface for logger libraries // Logger serves as an adapter interface for logger libraries
// so that dex does not depend on any of them directly. // so that dex does not depend on any of them directly.
type Logger interface { type Logger interface {
Debug(args ...interface{})
Info(args ...interface{}) Info(args ...interface{})
Warn(args ...interface{}) Warn(args ...interface{})
Error(args ...interface{})
Debugf(format string, args ...interface{}) Debugf(format string, args ...interface{})
Infof(format string, args ...interface{}) Infof(format string, args ...interface{})
Warnf(format string, args ...interface{})
Errorf(format string, args ...interface{}) Errorf(format string, args ...interface{})
} }

Loading…
Cancel
Save