data/log/logger.go
func NewLogger(conf *Config, db *reform.DB) (log.Logger, error) {
	l := &dbLogger{db: db}

	base, err := log.NewLoggerBase(conf.BaseConfig, l.log)
	if err != nil {
		return nil, err
	}

	l.LoggerBase = base
	return l, nil
}
func NewLogger(conf *Config, db *reform.DB) (log.Logger, error) {
	l := &dbLogger{db: db}

	base, err := log.NewLoggerBase(conf.BaseConfig, l.log)
	if err != nil {
		return nil, err
	}

	l.LoggerBase = base
	return l, nil
}
// NewLogger creates a new database logger.