Skip to content

浏览器实时查看服务器日志,免去频繁登录服务器查看日志

License

Notifications You must be signed in to change notification settings

buynowdev/ZlogViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZlogViewer

日志查看器,浏览器实时展示服务器日志

image-20200304154048176

使用方式

下载

Zlog-0.0.2

编辑配置文件

vim ~/.zlog/config.json

{
  "logFiles": [
    {
      "sourceId": "DemoLog",
      "filePath": "/Users/zhaoyuening/.zlog/demo.log"
    },
    {
      "sourceId": "Demo2Log",
      "filePath": "/Users/zhaoyuening/.zlog/demo2.log"
    }
  ]
}

启动程序

nohup java -jar zlog-0.0.1-SNAPSHOT.jar --server.port=8080 &

访问浏览器

http://localhost:8080

image-20200304154130467

使用问题

如果websocket连接失败,可能是nginx未配置支持导致:解决websocket nginx 404

About

浏览器实时查看服务器日志,免去频繁登录服务器查看日志

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published