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.1.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.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file django_logger_cli-0.1.1.tar.gz.

File metadata

  • Download URL: django_logger_cli-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 04e7112d2310a4ecad439ab5d426fc0e870057b4594ae56fc79ca67d59d89ec3
MD5 916dcb417f8898d08e43070942e85318
BLAKE2b-256 92fac04816dfd01dd155845f168b0b6b2b257f1a31537127e94e31aaf0ed4fe6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_logger_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2645b05177f422b20cd26bfe746bbd1fc4ccda65a0aba69a825acc26f74aeff
MD5 f7b1ba0d4b6f93db23f37bf6fbe05944
BLAKE2b-256 173287caace257d6a4f34a82a5aac59a5ec8489a99b0084d95ad067de012b0c4

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