github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/agent/log/logger.go (about) 1 package log 2 3 // Logger is an interface that library users can use 4 // It is based on logrus, but much smaller — That's because we don't want library users to have to implement 5 // all of the logrus's methods 6 type Logger interface { 7 Infof(_ string, _ ...interface{}) 8 Debugf(_ string, _ ...interface{}) 9 Errorf(_ string, _ ...interface{}) 10 } 11 12 type NoopLogger struct{} 13 14 func (*NoopLogger) Infof(_ string, _ ...interface{}) {} 15 func (*NoopLogger) Debugf(_ string, _ ...interface{}) {} 16 func (*NoopLogger) Errorf(_ string, _ ...interface{}) {}