Metadata-Version: 2.0
Name: admin-logs
Version: 0.1.0
Summary: Admin logs for django like in Google Application Engine
Home-page: UNKNOWN
Author: Anton Pomeschenko
Author-email: ferumflex@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development
Requires-Dist: django-picklefield
Requires-Dist: celery (>=3.1.15)
Requires-Dist: django-celery (>=3.1.15)
Requires-Dist: django (>=1.7)

About
=====

This small module for django allows you to store requests in your database(now supports only database) and then loot at them in django admin. This module was inspired by logs in Google Application Engine


Configure
=========

Include this lines to your settings.py:


::

  INSTALLED_APPS += ('admin_logs', )
  MIDDLEWARE_CLASSES = ('admin_logs.middleware.LogRequestMiddleware', ) + MIDDLEWARE_CLASSES

  ADMIN_LOGS_BACKEND = 'admin_logs.backends.database.DatabaseBackend'

  from admin_logs import setup_level
  setup_level('INFO')


Working
=======

Anyway in the code you can run:

::

  import logging
  logging.warning('Test')


And this warning will be written to logs and you can check it later.

