github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/testing/logging.go (about)

     1  package testing
     2  
     3  import (
     4  	"os"
     5  
     6  	golog "log"
     7  
     8  	"github.com/sirupsen/logrus"
     9  )
    10  
    11  func init() {
    12  	golog.SetFlags(golog.Lshortfile | golog.Ldate | golog.Ltime)
    13  }
    14  
    15  func SetupLogging() {
    16  	// log.SetFormatter(&log.JSONFormatter{})
    17  	logrus.SetOutput(os.Stdout)
    18  	logrus.SetLevel(logrus.DebugLevel)
    19  }