Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 862 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 862 Bytes

Simple Log Server

Basic implementation of a server that responds to Python logging SocketHandler, stores the records in MongoDB, and displays the results in a web browser. Created for personal use during development, not production.

Records are sent to the browser with websockets so that we can send live updates easily --- this is done by watching the MongoDB change log for inserts. The updates are not synchronized properly and assumptions are made here.

Requirements

  • MongoDB on localhost with a replica set (single instance works fine)
  • Python 3.~
  • Pymongo, gevent, gevent-websocket

Usage

python -m simplelogserver

Screenshot

This is a screenshot

TODO

  • Show full record info on click
  • Sort the records inplace in JavaScript
  • Pagination --- requires changes to program structure
  • Filters