Read and Download log files
Project description
Django Log Inspector
Fast and Live view to your log files
Django Log Inspector offers real-time monitoring and analysis of log files in Django projects. It delivers a fast and live view of log data, eliminating manual page refreshing. With an intuitive interface and live update functionality, it streamlines log file management for easier issue tracking and troubleshooting in Django applications.
Django Log Inspector is available directly from PyPI:
Installation
pip install django-log-inspector
Add in INSTALLED_APPS
installed_apps = [
...
'log_inspector',
]
Include in the URLconf
path('logs/', include('log_inspector.urls')),
Settings
LOG_INSPECTOR_FILES = ['logfile1', 'logfile2', ...]
LOG_INSPECTOR_FILES_PATTERN = '*.log*'
LOG_INSPECTOR_FILES_DIR = 'logs/'
LOG_INSPECTOR_PAGE_LENGTH = 25 # total log lines per-page
LOG_INSPECTOR_MAX_READ_LINES = 1000 # total log lines will be read
LOG_INSPECTOR_FILE_LIST_MAX_ITEMS_PER_PAGE = 25 # Max log files loaded in Datatable per page
LOG_INSPECTOR_PATTERNS = ['[INFO]', '[DEBUG]', '[WARNING]', '[ERROR]', '[CRITICAL]']
LOG_INSPECTOR_EXCLUDE_TEXT_PATTERN = None # String regex expression to exclude the log from line
# Optionally you can set the next variables in order to customize the admin:
LOG_INSPECTOR_FILE_LIST_TITLE = "Custom title"
LOG_INSPECTOR_FILE_LIST_STYLES = "/static/css/my-custom.css"
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_log_inspector-0.0.5.tar.gz
(44.4 kB
view hashes)
Built Distribution
Close
Hashes for django_log_inspector-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f68000e632165df44b2312129eb2bb263e22ae4e971eb053fd8d6a415f4a1e90 |
|
MD5 | 90055bdcee2898a29ab0b6070659924a |
|
BLAKE2b-256 | cb5b84d74c782124afff9d7adf03b9d6ee4bec895fac487769f8a8e806200a3a |
Close
Hashes for django_log_inspector-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02e3f346a7cc3fe7f9251074095923255c069f13019cc82cb8579e2199b491d2 |
|
MD5 | cd9a4027ace4012f57f2e33432494619 |
|
BLAKE2b-256 | 85ca66378cb7b23c7281c3e5e12b8f2deb605778e9ae98c547ac0c9ad0fbd806 |