wstailog

package module
v0.0.0-...-5038cf0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 12 Imported by: 0

README

wstailog

License

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

项目展示

image

Documentation

Index

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL