You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
566 B
20 lines
566 B
package rest
|
|
|
|
import "github.com/rs/zerolog/log"
|
|
|
|
type zeroLogWrapper struct{}
|
|
|
|
func (l *zeroLogWrapper) Error(msg string, keysAndValues ...interface{}) {
|
|
log.Error().Msgf(msg, keysAndValues...)
|
|
}
|
|
func (l *zeroLogWrapper) Info(msg string, keysAndValues ...interface{}) {
|
|
log.Info().Msgf(msg, keysAndValues...)
|
|
}
|
|
func (l *zeroLogWrapper) Debug(msg string, keysAndValues ...interface{}) {
|
|
// no thanks.
|
|
// log.Debug().Msgf(msg, keysAndValues...)
|
|
}
|
|
func (l *zeroLogWrapper) Warn(msg string, keysAndValues ...interface{}) {
|
|
log.Warn().Msgf(msg, keysAndValues...)
|
|
}
|