main.go 251 B

1234567891011121314151617181920
  1. package main
  2. import (
  3. "fmt"
  4. "time"
  5. "github.com/tal-tech/go-zero/core/logx"
  6. )
  7. func main() {
  8. logx.MustSetup(logx.LogConf{
  9. Mode: "console",
  10. })
  11. logx.CollectSysLog()
  12. line := "asdkg"
  13. logx.Info(line)
  14. fmt.Print(line)
  15. time.Sleep(time.Second)
  16. }