# ZlogViewer **Repository Path**: mkxue/ZlogViewer ## Basic Information - **Project Name**: ZlogViewer - **Description**: 浏览器实时查看服务器日志,免去频繁登录服务器查看日志 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 6 - **Created**: 2021-12-17 - **Last Updated**: 2021-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ZlogViewer 日志查看器,浏览器实时展示服务器日志 ![image-20200304154048176](https://tva1.sinaimg.cn/large/00831rSTly1gchxsyxcyqj31gb0k5n7v.jpg) ## 使用方式 ### 下载 [Zlog-0.0.2](https://github.com/ZhaoYueNing/ZlogViewer/releases/tag/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](https://tva1.sinaimg.cn/large/00831rSTly1gchxtoywjpj31h007umzq.jpg) ## 使用问题 如果websocket连接失败,可能是nginx未配置支持导致:[解决websocket nginx 404](https://blog.csdn.net/starlh35/article/details/78546576?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task)