Skip to content

gethgr/django-base-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Base Logger

Reusable Django logger package with a simple BaseLogger class.
Designed for all projects: lightweight, console logging, and easily extensible.

Features

  • Core BaseLogger class for console logging
  • Supports logging levels: info, warning, error
  • Extensible via handlers.py and utils.py for project-specific needs
  • Minimal dependencies (built-in logging module only)
  • Ready to use in any Django or Python project

Installation

Install via poetry:

poetry add git+https://git@github.com:gethgr/django-base-logger.git

Extending the BaseLogger

You can create a custom logger for your project:

from django_base_logger.logger import BaseLogger

class CustomLogger(BaseLogger): def debug(self, msg: str): self.logger.debug(msg)

You can also add custom handlers or utility functions in handlers.py and utils.py.

Requirements

Python 3.12+ (compatible with Django projects)

No additional dependencies (uses Python built-in logging)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages