Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xxl6097/gologview

查看日志
https://github.com/xxl6097/gologview

Last synced: 24 days ago
JSON representation

查看日志

Awesome Lists containing this project

README

        

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

## 添加依赖

```shell

go get -u github.com/xxl6097/gologview

```
## 使用步骤

```go

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