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.

26 lines
538 B

package db
import (
"github.com/aergoio/aergo-lib/log"
)
type extendedLog struct {
*log.Logger
}
func (l *extendedLog) Errorf(f string, v ...interface{}) {
l.Error().Msgf(f, v...)
}
func (l *extendedLog) Warningf(f string, v ...interface{}) {
l.Warn().Msgf(f, v...)
}
func (l *extendedLog) Infof(f string, v ...interface{}) {
// reduce info to debug level because infos at badgerdb are too detail
l.Debug().Msgf(f, v...) // INFO -> DEBUG
}
func (l *extendedLog) Debugf(f string, v ...interface{}) {
l.Debug().Msgf(f, v...)
}