https://github.com/debugtalk/wstailog
https://github.com/debugtalk/wstailog
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/debugtalk/wstailog
- Owner: debugtalk
- License: mit
- Created: 2020-11-05T08:55:59.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-27T07:43:13.000Z (about 5 years ago)
- Last Synced: 2025-01-25T12:11:32.246Z (about 1 year ago)
- Language: Go
- Size: 241 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wstailog
[](https://github.com/debugtalk/wstailog/blob/master/LICENSE)
Forked from `github.com/xmge/seelog`
### 项目介绍
* 与 golang 项目集成、提供浏览器实时查看日志的功能,类似 `tail -f xxx.log`
* 支持监控多个日志文件
* 支持多浏览器同时访问
* 支持浏览器 websocket 断线重连
* 支持暂停、清屏、过滤功能
* 查找功能可直接使用浏览器 `Ctrl+F` 来完成
### 集成方式
```go
import "github.com/debugtalk/wstailog"
wstailog.Tail("错误日志", "err.log") // 实时监听 err.log
wstailog.Tail("调试日志", "debug.log") // 实时监听 debug.log
wstailog.Serve(27129)
```
在浏览器中访问 `http://host:port/wstailog`
### 项目展示
