Simple package for live streaming of file.
Project description
=====
Django Live Log
=====
django_live_log is a package which can see live stream of file, such as log file, etc.
Installation
------------
pip install django_live_log
Quick start
-----------
1. Add "django_live_log" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'django_live_log',
]
2. Include the django_live_log URLconf in your project urls.py like this::
url(r'^dll/', include('django_live_log.urls')),
3. Add "DLL_FILE" to settings.py::
DLL_FILE = '/var/log/myfile.log' (should have read permission)
4. Visit http://127.0.0.1:8000/dll/
Options
----------
* DLL_URL in settings.py.
Usage:
DLL_URL = "/myurl/"
so dll wii serve at `domain.com/dll/myurl/`
* DLL_GROUP_PERMISSION in settings.py
Group name or list of group names.
Usage:
DLL_GROUP_PERMISSION = "My group name" # or ["My group name1", "My group name2"] (strict in PROD mode)
* from
Start pointer reading from file.
Usage:
domain.com/dll/myurl/?from=500
* file_path
absolute path of file to log
Usage:
domain.com/dll/myurl/?file_path=/var/log/myfile.log
- Should have read permission
Django Live Log
=====
django_live_log is a package which can see live stream of file, such as log file, etc.
Installation
------------
pip install django_live_log
Quick start
-----------
1. Add "django_live_log" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'django_live_log',
]
2. Include the django_live_log URLconf in your project urls.py like this::
url(r'^dll/', include('django_live_log.urls')),
3. Add "DLL_FILE" to settings.py::
DLL_FILE = '/var/log/myfile.log' (should have read permission)
4. Visit http://127.0.0.1:8000/dll/
Options
----------
* DLL_URL in settings.py.
Usage:
DLL_URL = "/myurl/"
so dll wii serve at `domain.com/dll/myurl/`
* DLL_GROUP_PERMISSION in settings.py
Group name or list of group names.
Usage:
DLL_GROUP_PERMISSION = "My group name" # or ["My group name1", "My group name2"] (strict in PROD mode)
* from
Start pointer reading from file.
Usage:
domain.com/dll/myurl/?from=500
* file_path
absolute path of file to log
Usage:
domain.com/dll/myurl/?file_path=/var/log/myfile.log
- Should have read permission
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
django_live_log-1.1.7.tar.gz
(4.1 kB
view details)
File details
Details for the file django_live_log-1.1.7.tar.gz.
File metadata
- Download URL: django_live_log-1.1.7.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2634b868b3ced6de14257b7bd8a12a792ec5bcc446a5747af5af416e761b7aa
|
|
| MD5 |
b1acebfc2f1d891c30c6668dcffd33d9
|
|
| BLAKE2b-256 |
0a945cf0bcb00ffa9165e41e323e27369997b5871bddecf43d2a35aa825517ea
|