Skip to content

利用django + channels 实现Liux tail -f 功能

Notifications You must be signed in to change notification settings

xianfuxing/django-tail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-tail

利用django + channels 实现Linux tail -f 功能

python requirement

python 2.7+ / 3.4+ is recommended

功能

用户登录后,可以查看在线日志。

screenshot

image

Installation

pip install django==1.10
pip install channels==1.1.3
pip install asgi-redis==1.4.0

Getting Started

python manage.py makemigrations accounts
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver

Settings

Edit settings.py

LOGTAIL_FILE = '/var/log/nginx/access.log'

Multi Logs Beta

多日志支持(测试版)

branch: multi-log

LOGTAIL_FILES = [ '/var/log/nginx/access.log', '/var/log/messages', ]

To be continue...

  1. 增加search功能,待续... (done)
  2. 增加click log line选中
  3. 多日志支持 (done)

About

利用django + channels 实现Liux tail -f 功能

Resources

Stars

Watchers

Forks

Packages

No packages published