Skip to main content

flask files manage,realtime flush logs

Project description

realtime_web_logs

文件日志实时显示到web页面。附带全系统硬盘的文件浏览下载功能。

gunicorn -w 9 -k gevent --bind 0.0.0.0:8888 log_to_web:app

看日志希望带有彩色,希望从浏览器上看到,不用连到机器上看。

 浏览系统的文件夹,scan + 系统文件夹的层级名字当做url路由,可以深层次看到机器上任何层级的文件夹,
 实现系统文件夹浏览下载。

如果是点击文件夹进入子目录。

如果是点击文件,尝试以文本格式读取文件,并以实时更新的方式显示到浏览器日志控制台并加彩。 
主要是要做到不遗漏推送日志和不重复推送日志,采用的是python 操作文件的seek和tell。

浏览系统目录和下载文件的页面

Image text

查看实时日志更新的页面,提供了暂停功能和自动下拉功能。把日志根据级别加了彩色,

更容易观察哪些是严重的,哪些是debug的。

Image text

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

realtime_web_logs-1.5.tar.gz (370.8 kB view details)

Uploaded Source

File details

Details for the file realtime_web_logs-1.5.tar.gz.

File metadata

  • Download URL: realtime_web_logs-1.5.tar.gz
  • Upload date:
  • Size: 370.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for realtime_web_logs-1.5.tar.gz
Algorithm Hash digest
SHA256 9bf682d8f5d87aa2a5842c13be7e7f0c1f950953d08470c321faa41d6725119c
MD5 81ace6b7b76e21ab2c1573c2c898a416
BLAKE2b-256 18f5684687afbca99913e9f511e0b01663f62c56f2e2346fcede9c82d66776bb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page