README ¶ wstailog Forked from github.com/xmge/seelog 项目介绍 与 golang 项目集成、提供浏览器实时查看日志的功能,类似 tail -f xxx.log 支持监控多个日志文件 支持多浏览器同时访问 支持浏览器 websocket 断线重连 支持暂停、清屏、过滤功能 查找功能可直接使用浏览器 Ctrl+F 来完成 集成方式 import "github.com/debugtalk/wstailog" wstailog.Tail("错误日志", "err.log") // 实时监听 err.log wstailog.Tail("调试日志", "debug.log") // 实时监听 debug.log wstailog.Serve(27129) 在浏览器中访问 http://host:port/wstailog 项目展示 Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Serve(port int) func Tail(logName, logPath string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Serve ¶ func Serve(port int) start monitor func Tail ¶ func Tail(logName, logPath string) register monitor log file Types ¶ This section is empty. Source Files ¶ View all Source files main.go model.go monitor.go web.go ws.go Directories ¶ Show internal Expand all Path Synopsis example Click to show internal directories. Click to hide internal directories.