Name | django-log-inspector JSON |
Version |
0.0.9
JSON |
| download |
home_page | None |
Summary | Real-Time monitoring and analysis of logs |
upload_time | 2024-04-30 10:43:33 |
maintainer | None |
docs_url | None |
author | None |
requires_python | None |
license | MIT License Copyright (c) 2024 Peyman Hassani Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
django
logging
log viewer
real-time monitoring
log analysis
troubleshooting
log management
log files
log monitoring
debugging
python web development
development tool
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Django Log Inspector
## _Fast and Live view to your log files_
![version](https://img.shields.io/badge/version-0.0.9-blue.svg)
[![Open Source](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://opensource.org/)
<a href="https://github.com/peyzor/django-log-inspector"><img src="https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white" alt="GitHub"/></a>
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 <a href="https://pypi.org/project/django-log-inspector/">PyPI</a>:
## 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
The directory of log files in your project
```
LOG_INSPECTOR_FILES_DIR = 'logs/'
```
A file is included if the pattern is matched, or it is specified
```
LOG_INSPECTOR_FILES = ['logfile1', 'logfile2', ...] # default: []
LOG_INSPECTOR_FILES_PATTERN = '*.log*'
```
You must specify the patterns in which your log files start with
#### Note: Make sure you have a formatter specified for your logs in django settings
```
LOG_INSPECTOR_PATTERNS = ['[INFO]', '[DEBUG]', '[WARNING]', '[ERROR]', '[CRITICAL]']
```
How logs are displayed
```
LOG_INSPECTOR_PAGE_LENGTH = 25 # total logs per-page
LOG_INSPECTOR_MAX_READ_LINES = 1000 # total logs that are read
LOG_INSPECTOR_EXCLUDE_TEXT_PATTERN = None # String regex expression to exclude the log
```
Optionally you can set the next variables in order to customize
```
LOG_INSPECTOR_FILE_LIST_TITLE = "Custom title" # default: None
LOG_INSPECTOR_FILE_LIST_STYLES = "/static/css/my-custom.css" # default: None
```
## Login
Logs are only accessible to logged-in superusers.
If your login URL is different from Django's default, specify it in your settings.
```
LOGIN_URL = '/my-custom-admin/login/'
```
## Static Files
Deploy static files by running the command
```
python manage.py collectstatic
```
## Finally
Start the development server and visit
```
http://127.0.0.1:8000/logs/
```
Raw data
{
"_id": null,
"home_page": null,
"name": "django-log-inspector",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": "Peyman Hassani <hassani.peyman627@gmail.com>, Shaghayegh Valadkhani <valadkhani.sh@gmail.com>",
"keywords": "Django, logging, log viewer, real-time monitoring, log analysis, troubleshooting, log management, log files, log monitoring, debugging, Python web development, development tool",
"author": null,
"author_email": "Peyman Hassani <hassani.peyman627@gmail.com>, Shaghayegh Valadkhani <valadkhani.sh@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/80/67/8f4a5f6dc5e6b7ecd801d38161f155cfe9dd79792cf37e08a47879c327b5/django_log_inspector-0.0.9.tar.gz",
"platform": null,
"description": "# Django Log Inspector\n\n## _Fast and Live view to your log files_\n\n![version](https://img.shields.io/badge/version-0.0.9-blue.svg)\n[![Open Source](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://opensource.org/)\n<a href=\"https://github.com/peyzor/django-log-inspector\"><img src=\"https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white\" alt=\"GitHub\"/></a>\n\nDjango Log Inspector offers real-time monitoring and analysis of log files in Django projects.\nIt delivers a fast and live-view of log data, eliminating manual page refreshing.\nWith an intuitive interface and live update functionality, it streamlines log file management for easier issue tracking\nand troubleshooting in Django applications.\n\nDjango Log Inspector is available directly from <a href=\"https://pypi.org/project/django-log-inspector/\">PyPI</a>:\n\n## Installation\n\n```\npip install django-log-inspector\n``` \n\nAdd in INSTALLED_APPS\n\n```\ninstalled_apps = [\n ...\n 'log_inspector',\n]\n```\n\nInclude in the URLconf\n\n```\npath('logs/', include('log_inspector.urls'))\n```\n\n## Settings\n\nThe directory of log files in your project\n\n```\nLOG_INSPECTOR_FILES_DIR = 'logs/'\n```\n\nA file is included if the pattern is matched, or it is specified\n\n```\nLOG_INSPECTOR_FILES = ['logfile1', 'logfile2', ...] # default: []\nLOG_INSPECTOR_FILES_PATTERN = '*.log*' \n```\n\nYou must specify the patterns in which your log files start with\n\n#### Note: Make sure you have a formatter specified for your logs in django settings\n\n```\nLOG_INSPECTOR_PATTERNS = ['[INFO]', '[DEBUG]', '[WARNING]', '[ERROR]', '[CRITICAL]']\n```\n\nHow logs are displayed\n\n```\nLOG_INSPECTOR_PAGE_LENGTH = 25 # total logs per-page\nLOG_INSPECTOR_MAX_READ_LINES = 1000 # total logs that are read\nLOG_INSPECTOR_EXCLUDE_TEXT_PATTERN = None # String regex expression to exclude the log\n```\n\nOptionally you can set the next variables in order to customize\n\n```\nLOG_INSPECTOR_FILE_LIST_TITLE = \"Custom title\" # default: None\nLOG_INSPECTOR_FILE_LIST_STYLES = \"/static/css/my-custom.css\" # default: None\n```\n\n## Login\n\nLogs are only accessible to logged-in superusers.\nIf your login URL is different from Django's default, specify it in your settings.\n\n```\nLOGIN_URL = '/my-custom-admin/login/'\n```\n\n## Static Files\n\nDeploy static files by running the command\n\n```\npython manage.py collectstatic\n```\n\n## Finally\n\nStart the development server and visit\n\n```\nhttp://127.0.0.1:8000/logs/\n```\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 Peyman Hassani Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "Real-Time monitoring and analysis of logs",
"version": "0.0.9",
"project_urls": {
"Homepage": "https://github.com/peyzor/django-log-inspector"
},
"split_keywords": [
"django",
" logging",
" log viewer",
" real-time monitoring",
" log analysis",
" troubleshooting",
" log management",
" log files",
" log monitoring",
" debugging",
" python web development",
" development tool"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ea0981a30ceea0188ed588a884e4e075f47120d2d010351bf53c976b1a34354c",
"md5": "46ffa4dae7ccd43a767d1c4edd788ae3",
"sha256": "1bdb44fd725a4df9b417d83369824c34ece48d3c95f2a6835b1f5db726ea06cf"
},
"downloads": -1,
"filename": "django_log_inspector-0.0.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "46ffa4dae7ccd43a767d1c4edd788ae3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 50252,
"upload_time": "2024-04-30T10:43:29",
"upload_time_iso_8601": "2024-04-30T10:43:29.796933Z",
"url": "https://files.pythonhosted.org/packages/ea/09/81a30ceea0188ed588a884e4e075f47120d2d010351bf53c976b1a34354c/django_log_inspector-0.0.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "80678f4a5f6dc5e6b7ecd801d38161f155cfe9dd79792cf37e08a47879c327b5",
"md5": "fef1fe81f2d752e1b74d11c255626e3b",
"sha256": "6731151ec6ac295829a6d9bd99f0bcffba4113c08f7697f0348ac3fb3b851d1d"
},
"downloads": -1,
"filename": "django_log_inspector-0.0.9.tar.gz",
"has_sig": false,
"md5_digest": "fef1fe81f2d752e1b74d11c255626e3b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 45048,
"upload_time": "2024-04-30T10:43:33",
"upload_time_iso_8601": "2024-04-30T10:43:33.263837Z",
"url": "https://files.pythonhosted.org/packages/80/67/8f4a5f6dc5e6b7ecd801d38161f155cfe9dd79792cf37e08a47879c327b5/django_log_inspector-0.0.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-30 10:43:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "peyzor",
"github_project": "django-log-inspector",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "django-log-inspector"
}