/gologview

查看日志

Primary LanguageVue

基于Golang语言的Web端查看日志

添加依赖

go get -u github.com/xxl6097/gologview

使用步骤

func init() {
	logview.GetLogApi().RunAndSetUserPass(8080, "admin", "admin")
}

func main() {
  for {
		fmt.Println("aaaaaa这个不会在web上显示哦")
		glog.Info("info...")
		time.Sleep(time.Second)
	}
}

https://blog.csdn.net/qq_30505673/article/details/90716323