Django Log Reader
Django Log Reader allows you to read & download log files on the admin page.
This version designed for the Linux operating system and uses Linux commands to read files faster.
Why Django Log Reader?
- Reading files based on Linux commands speeds up the display of file content
- Search in files based on Linux commands
- Download the result of the content
- Display all files according to the pattern defined in the
settings.py - Simple interface
- Easy integration
How to use it
- Download and install latest version of Django Log Reader:
$ pip install django-log-reader
# or
$ easy_install django-log-reader
- Add
log_readerapplication to theINSTALLED_APPSsetting of your Django projectsettings.pyfile:
INSTALLED_APPS = (
# ...
"log_reader.apps.LogReaderConfig",
)
- You can Add the following value In your
settings.pyfile:
# This value specifies the folder for the files. The default value is 'logs'
LOG_READER_DIR_PATH = 'logs'
# This value specifies the file extensions. The default value is '*.log'
LOG_READER_FILES_PATTERN = '*.log'
# This value specifies the default file. If there is no filter, the system reads the default file.
LOG_READER_DEFAULT_FILE = 'django.log'
# The contents of the files are separated based on this pattern.
LOG_READER_SPLIT_PATTERN = "\\n"
# This value indicates the number of lines of content in the file. Set the number of lines you want to read to this value.
LOG_READER_MAX_READ_LINES = 1000
# You can exclude files with this value.
LOG_READER_EXCLUDE_FILES = []
- Collect static if you are in production environment:
$ python manage.py collectstatic
- Clear your browser cache
Start the app
# Set up the database
$ python manage.py makemigrations
$ python manage.py migrate
# Create the superuser
$ python manage.py createsuperuser
# Start the application (development mode)
$ python manage.py runserver # default port 8000
- Access the
adminsection in the browser:http://127.0.0.1:8000/
Metadata
Release files for django-log-reader 1.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-log-reader-1.1.9.tar.gz | 8.5 kB | Without provenance | Details for django-log-reader-1.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_log_reader-1.1.9-py3-none-any.whl | Python 3 | none | any | Details for django_log_reader-1.1.9-py3-none-any.whl |
Total release size: 17.6 kB
Release files / django-log-reader-1.1.9.tar.gz
| Download URL | django-log-reader-1.1.9.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
122f47acef68f02ea3e71d081e7c6b2b274e720051712f2cd75c8881d9c536f2
|
|
BLAKE2b-256 checksum How to use checksums |
588da5c76f76d9139603f1001fac855a5ce37f386e61f745039b2925a4abd9fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.16
|
Release files / django_log_reader-1.1.9-py3-none-any.whl
| Download URL | django_log_reader-1.1.9-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
856d07669bc7ad2e5cdf303571e08eca9765ca2e6a41292c68b8b585844bfd79
|
|
BLAKE2b-256 checksum How to use checksums |
9f2a7548ebfec8a69d35b6cb8181c3f70a514b836ea33cb47a4e39d3a90d44d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.16
|
Security for django-log-reader 1.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.