Skip to content

Django Log Viewer allows you to read & download log files in the admin page.

License

Notifications You must be signed in to change notification settings

null-none/django-log-errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-log-errors

Django Log Viewer allows you to read & download log files in the admin page

Installation

pip install django-log-errors

Example

Add app in your settings.py

LOGGING = {
    "version": 1,
    "disable_existing_loggers": False,
    "formatters": {
        "verbose": {
            "format": "%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s"
        },
        "simple": {"format": "%(levelname)s %(asctime)s %(message)s"},
    },
    "handlers": {
        "db_log": {"level": "DEBUG", "class": "log_errors.handler.DatabaseLogHandler"},
    },
    "loggers": {
        "django": {
            "handlers": ["db_log"],
            "level": "ERROR",
            "propagate": False,
        },
    }
}   

About

Django Log Viewer allows you to read & download log files in the admin page.

Topics

Resources

License

Stars

Watchers

Forks

Languages