forked from mystiq/dex
Match the interface to logrus implementation
This commit is contained in:
parent
d1c8f8d095
commit
aec2edb441
2 changed files with 6 additions and 6 deletions
|
@ -6,8 +6,8 @@ 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 {
|
||||||
Info(msg string)
|
Info(args ...interface{})
|
||||||
Warn(msg string)
|
Warn(args ...interface{})
|
||||||
|
|
||||||
Debugf(format string, args ...interface{})
|
Debugf(format string, args ...interface{})
|
||||||
Infof(format string, args ...interface{})
|
Infof(format string, args ...interface{})
|
||||||
|
|
|
@ -15,13 +15,13 @@ func NewLogrusLogger(logger logrus.FieldLogger) *LogrusLogger {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Info logs an Info level event.
|
// Info logs an Info level event.
|
||||||
func (l *LogrusLogger) Info(msg string) {
|
func (l *LogrusLogger) Info(args ...interface{}) {
|
||||||
l.logger.Info(msg)
|
l.logger.Info(args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Warn logs a Warn level event.
|
// Warn logs a Warn level event.
|
||||||
func (l *LogrusLogger) Warn(msg string) {
|
func (l *LogrusLogger) Warn(args ...interface{}) {
|
||||||
l.logger.Warn(msg)
|
l.logger.Warn(args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Debugf formats and logs a Debug level event.
|
// Debugf formats and logs a Debug level event.
|
||||||
|
|
Loading…
Reference in a new issue