Skip to main content
# 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;

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)

Source distribution for django-dblogs 0.1
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

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page