Djalog - Simplest Django-ready logger out there
Introduction
Djalog provides ready-to-use logger. This is very simple logging wrapper, if you are looking for something more decent try django-logging.
Installation
In order to install Djalog you may use pip:
pip install Djalog
… or setuptools, if you prefer:
easy_install Djalog
Note that Djalog requires logging module which is available from Python 2.3.
Usage
If you want to quickly check how djalog works, go into your favorite python shell and type:
import djalog
import logging
logging.debug("Log some debug information.")
logging.info("Log some information.")
logging.warn("Log some warning.")
logging.error("Log some error.")
logging.critical("Log some critical information.")
from djalog import configure
configure(LOG_USE_COLORS=True, LOG_SQL=True, LOG_LEVEL=5)
logging.debug("Log some debug information.")
logging.info("Log some information.")
logging.warn("Log some warning.")
logging.error("Log some error.")
logging.critical("Log some critical information.")
# Log sql query
logging.sql("SELECT * FROM users WHERE username = 'admin'")
From this example you can see that changing settings for djalog utility can be done with djalog.configure method.
How does it work
Djalog is simplest possible approach for Django logging. In fact, it can be easily used outside of the Django context (see example at the Usage section).
References
Metadata
Release files for Djalog 0.9.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Djalog-0.9.4.tar.gz | 7.4 kB | Without provenance | Details for Djalog-0.9.4.tar.gz |
Release files / Djalog-0.9.4.tar.gz
| Download URL | Djalog-0.9.4.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
646b71dd4e47c393466e85c2b7201caeb3a99a6b2a3467b6ae0df5572810b6fc
|
|
BLAKE2b-256 checksum How to use checksums |
ceeb36bc4e890d22949a9bdeaf5df5a372daba038eee6215eb145af8883d38ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Djalog 0.9.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.