🛠️ A CLI tool to generate Django-style logger configurations.
Project description
Django Logger CLI
A lightweight and interactive CLI tool to generate Django-style logging configurations — quickly, cleanly, and flexibly.
Features
- Interactive logger setup with
click - Support for
FileHandler,StreamHandler, and time-rotating handlers - Option to select from default Django loggers or create custom ones
- Easy integration with existing Django projects
- Quick start with
--basic-configfor minimal setup - CLI help system with
--help
Installation
Install directly from PyPI:
-
Install directly from PyPI:
pip install django-logger-cli
Make sure to provide a .env file for local development., craete one by copying from sampleenv.txt file.
-
Install locally:
git clone https://github.com/codewithmanuu/django-logger.git cd django-logger-cli pip install .
Usage
- To initialize logging configuration interactively:
django-logger init - For using the basic config without answering the prompt
djangologger init --basic-config
Help Menu
-
djangologger init --help
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Pull requests and suggestions are welcome!
- Fork the repo
- Create a branch (git checkout -b feature/fooBar)
- Commit your changes (git commit -am 'Add some fooBar')
- Push to the branch (git push origin feature/fooBar)
- Create a new Pull Request
Author
- Manukrishna S
- mailto:manukrishna.s2001@gmail.com
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_logger_cli-0.1.2.tar.gz.
File metadata
- Download URL: django_logger_cli-0.1.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6a1c5a38e5f8cbe47a84910f3a90285ced84247914899fc129acf7f2cb8aca8
|
|
| MD5 |
1f1d32115a7707a76eb8c0f9bb5d8b81
|
|
| BLAKE2b-256 |
7b232769f864347944f712405a3623707ab79838e9e3ce6a3e9820b8f96a8e36
|
File details
Details for the file django_logger_cli-0.1.2-py3-none-any.whl.
File metadata
- Download URL: django_logger_cli-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e9781916e9cddf962e5de0117d3e6dd3f8696d99a983f6144d452cd9fee0857
|
|
| MD5 |
a6caf587d5b45ffe282a7cb055837f89
|
|
| BLAKE2b-256 |
2765e3382e5939035b7a2605039c9a9a3cf4f30bbce81e9f162ab8dbb7639292
|