### Installing dj_loguru Package (Shell) Source: https://github.com/lingfromsh/django-loguru/blob/main/README.md Command to install the `dj_loguru` package using pip. This is the first step to integrate loguru with Django. ```Shell pip install dj_loguru ``` -------------------------------- ### Configuring Django Logging with dj_loguru (Python) Source: https://github.com/lingfromsh/django-loguru/blob/main/README.md Sets Django's `LOGGING_CONFIG` to `None` to disable default logging configuration and defines the `LOGGING` dictionary to configure loguru sinks, formats, and loggers for use within a Django project. ```Python LOGGING_CONFIG = None LOGGING = { "formats": { "default": "ts={time:YYYY-MM-DD HH:mm:ss.SSS} |" " level={level:<8} |" " file={file} module={module} func={function} line={line}" " - {message}", }, "sinks": { "console": { "output": sys.stderr, "format": "default", "level": "DEBUG", }, "file": { "output": "/tmp/log.log", "format": "default", "level": "DEBUG", "rotation": "1 day", }, }, "loggers": { "dj_loguru": { "sinks": ["console", "file"], "level": "DEBUG", "propagate": True, }, }, } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.