Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xxl6097/gologview
查看日志
https://github.com/xxl6097/gologview
Last synced: 24 days ago
JSON representation
查看日志
- Host: GitHub
- URL: https://github.com/xxl6097/gologview
- Owner: xxl6097
- Created: 2023-05-09T06:00:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-26T08:38:10.000Z (8 months ago)
- Last Synced: 2024-03-26T09:42:47.109Z (8 months ago)
- Language: Vue
- Size: 3.03 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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