Skip to content

Instantly share code, notes, and snippets.

View kasplat's full-sized avatar

Kesavan Kushalnagar kasplat

View GitHub Profile
@ipmb
ipmb / settings.py
Last active November 11, 2024 07:14
Django logging example
import logging.config
import os
from django.utils.log import DEFAULT_LOGGING
# Disable Django's logging setup
LOGGING_CONFIG = None
LOGLEVEL = os.environ.get('LOGLEVEL', 'info').upper()
logging.config.dictConfig({