Skip to main content

🛠️ 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-config for minimal setup
  • CLI help system with --help

Installation

Install directly from PyPI:

  1. 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.

  1. Install locally:

    git clone https://github.com/codewithmanuu/django-logger.git
    cd django-logger-cli
    pip install .
    

Usage

  1. To initialize logging configuration interactively:
    django-logger init
    
  2. For using the basic config without answering the prompt
    djangologger init --basic-config
    

Help Menu

  1. 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

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_logger_cli-0.1.2.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_logger_cli-0.1.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

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

Hashes for django_logger_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f6a1c5a38e5f8cbe47a84910f3a90285ced84247914899fc129acf7f2cb8aca8
MD5 1f1d32115a7707a76eb8c0f9bb5d8b81
BLAKE2b-256 7b232769f864347944f712405a3623707ab79838e9e3ce6a3e9820b8f96a8e36

See more details on using hashes here.

File details

Details for the file django_logger_cli-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_logger_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5e9781916e9cddf962e5de0117d3e6dd3f8696d99a983f6144d452cd9fee0857
MD5 a6caf587d5b45ffe282a7cb055837f89
BLAKE2b-256 2765e3382e5939035b7a2605039c9a9a3cf4f30bbce81e9f162ab8dbb7639292

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page