# 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;
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;
Release files for django-dblogs 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-dblogs-0.1.tar.gz | 3.3 kB | Details |
Release files / django-dblogs-0.1.tar.gz
| Download URL | django-dblogs-0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c40640732689238b0da0bc589903601e6ab4bc9c956e69dea080814ba1a38f1
|
|
BLAKE2b-256 checksum How to use checksums |
b09a6904b19928f2a33dd2cc9e3efc830b41bc42b986d455b770a63b122b517b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |