logset.go 309 B

12345678910111213141516
  1. package log
  2. import log "github.com/sirupsen/logrus"
  3. func Init() {
  4. log.SetFormatter(&log.TextFormatter{
  5. DisableColors: true,
  6. // FullTimestamp: true,
  7. })
  8. log.SetLevel(log.DebugLevel)
  9. // log.SetReportCaller(true)
  10. // log.SetOutput(os.Stdout)
  11. // p := new(service.Service)
  12. // log.Warnf("log :%v", p)
  13. }