Metadata-Version: 1.1
Name: django-dblogs
Version: 0.1
Summary: A simple Django app to write logging data to database
Home-page: https://github.com/jian-en/django_dblogs
Author: Fu Jian
Author-email: fujian_en@126.com
License: BSD License
Description: # dblogs
        a package to add logging handlers to write logs into database in django project
        
        # Quick start
        1. Add "dblogs" to your INSTALLED_APPS settings;
        2. Config loggings handlers to log stuff:
            
            'handlers':{
                'log_db':{
                    'level': 'WARNING',
                    'class': 'dblogs.handlers.DBHandler',
                    # model and expiry can be configured to your preference
                    # the default is dblogs.GeneralLog model and expiry is in no effect
                    'model': 'your.data.model',
                    'expiry': 10000, # unit is seconds
                    'formatter': 'simple',
                    },
                }
        
        3. Include the polls URLconf in your project urls.py;
        4. Run 'python manage.py migrate' to create models to store logs;
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
