github.com/argoproj/argo-events@v1.9.1/test/e2e/http_logger.go (about)

     1  package e2e
     2  
     3  import (
     4  	"go.uber.org/zap"
     5  
     6  	"github.com/argoproj/argo-events/common/logging"
     7  )
     8  
     9  type httpLogger struct {
    10  	log *zap.SugaredLogger
    11  }
    12  
    13  func NewHttpLogger() *httpLogger {
    14  	return &httpLogger{
    15  		log: logging.NewArgoEventsLogger(),
    16  	}
    17  }
    18  
    19  func (d *httpLogger) Logf(fmt string, args ...interface{}) {
    20  	d.log.Debugf(fmt, args...)
    21  }