jizhang / logviewer Goto Github PK
View Code? Open in Web Editor NEW[Blog] Log tailer with Python and websocket.
Home Page: http://shzhangji.com/blog/2017/07/15/log-tailer-with-websocket-and-python/
[Blog] Log tailer with Python and websocket.
Home Page: http://shzhangji.com/blog/2017/07/15/log-tailer-with-websocket-and-python/
I am trying to get this basic code to work. I run the server on a local VM using: python3 server.py --host 192.168.1.28 --port 5000 --prefix /var/log/supervisord since I am trying to tail the logs from /var/log/supervisord/error.log. Then on a chrome browser, I try ws://192.168.1.28:5000/var/log/supervisord/error.log?tail=1
However I don't get anything. Developer console/Network tab does not show anything meaningful. logging/print statements in the view_log function don't show it being called at all. What am I missing. There is no nginx or anything else running on the server that could be interfering.
The output on the browser is:
The webpage at ws://192.168.1.28:5000/var/log/supervisord/error.log might be temporarily down or it may have moved permanently to a new web address.
ERR_DISALLOWED_URL_SCHEME
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.