Skip to content

EnTeQuAk/django-chromelogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

image

Django Chrome Logger

Chrome-Logger support for Django. ChromeLogger is a protocol which allows sending logging messages to the Browser.

This module implements simple support for Django. It consists of two components:

  • LoggingMiddleware which is responsible for sending all log messages associated with the request to the browser.
  • ChromeLoggerHandler a python logging handler which collects all messages.

Configuration in settings.py is as follows:

MIDDLEWARE = [
    'chromelogger.LoggingMiddleware',
    ... # other middlewares
]

LOGGING = {
    ...
    'handlers': {
        'browser': {
            'class': 'chromelogger.ChromeLoggerHandler',
        },
        ...
    },
    'loggers': {
        'django': {
            'handlers': ['console', 'browser'],
            'level': 'DEBUG',
        },
        ...
    }
}

The code lives on GitHub, where you can report Issues. The full documentation is available on ReadTheDocs.

About

Chrome Logger support for Django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages