Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

django-exception-logger

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-exception-logger

Adds error logging to the admin panel

  • 0.1.5
  • PyPI
  • Socket score

Maintainers
1

django-exception_logger

installation

exception logger

  • Add exception_logger.middlewares.ExceptionLoggerMiddleware to the beginning of the MIDDLEWARE list
MIDDLEWARE = [
    "exception_logger.middlewares.ExceptionLoggerMiddleware",
    # Django middlewares
]
  • Register admin models
from exception_logger.admin import ExceptionModelAdmin, NoLogExceptionAdmin
from exception_logger.models import ExceptionModel, NoLogException

admin.site.register(ExceptionModel, ExceptionModelAdmin)
admin.site.register(NoLogException, NoLogExceptionAdmin)

celery exception logger

  • Register admin models
from exception_logger.admin import CeleryExceptionModelAdmin, NoLogCeleryExceptionAdmin
from exception_logger.models import CeleryExceptionModel, NoLogCeleryException

admin.site.register(CeleryExceptionModel, CeleryExceptionModelAdmin)
admin.site.register(NoLogCeleryException, NoLogCeleryExceptionAdmin)

request time logger

  • Add exception_logger.middlewares.RequestTimeMiddleware to the end of the MIDDLEWARE list
MIDDLEWARE = [
    # Django middlewares
    "exception_logger.middlewares.RequestTimeMiddleware",
]
  • Register admin model
from exception_logger.admin import RequestTimeAdmin
from exception_logger.models import RequestTime

admin.site.register(RequestTime, RequestTimeAdmin)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc