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.3.tar.gz (7.1 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.3-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_logger_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 7.1 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.3.tar.gz
Algorithm Hash digest
SHA256 6f077b0245df6d8b56a43c3c1b63fb41d7efd4aab01fb8c1a7b8471740936dc8
MD5 8b911bdcae869c6e14cacd132b3e89ef
BLAKE2b-256 319c2f47d62ae3c0d9d7dc661b9de795d54ac4d05378bcdc2e0688815e7d7781

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_logger_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 455a0d3a053f07bdd6dada499569db029ab3ac4edf05f88aaf73bf3c2d1e01c9
MD5 a8c36fea0b05a8e343410c722cf2dbac
BLAKE2b-256 63503129511709507484ad3d4cfda60384014ecc90b2449699bbe9e37829ce30

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