Skip to main content

Django Database Logs

Project description

Django Database Logs is an Apache2 licensed Django application that enables logging to the database.

Quickstart

Installing Django Database Logs is simple with pip:

$ pip install django-dblog

Changes to settings.py example:

INSTALLED_APPS += ['dblog']

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'handlers': {
        'dblog': {
            'class': 'dblog.DBLogHandler',
        },
    },
    'loggers': {
        'dblog': {
            'handlers': ['dblog'],
            'level': 'DEBUG',
            'propagate': False,
        },
    },
}

Using the logger, example:

import logging

dblog = logging.getLogger('dblog.' + __name__)

dblog.info('This message will go in the dblog Record table.')

Reference and Indices

Django Database Logs License

Copyright 2018-2022 Grant Jenks

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-dblog-0.3.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

django_dblog-0.3.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file django-dblog-0.3.0.tar.gz.

File metadata

  • Download URL: django-dblog-0.3.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for django-dblog-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8cf0bcd3157061f8c2ec6ba9e85383cdc8565670c441ecca15a595022b119252
MD5 bd7076443fb82143f1c726870f813211
BLAKE2b-256 3d3b972668da074448f903842aa916d4f1c028b04c578f2b51fc694729feb5bc

See more details on using hashes here.

File details

Details for the file django_dblog-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: django_dblog-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for django_dblog-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fdbfeb312d0747f1af5f89f110bd29e0a46c4b0299fd90ca0e8860b74c954661
MD5 f5712ae0d1ba1598999bca57314ab692
BLAKE2b-256 b6e1abeed66a73fbd5af9da167ca8b9b7384c9fe4f980114a6a68999e3027efd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page