A simple and sensible logging config
Project description
A “Sensible” Logging Configuration
You simply do this:
>>> from sensible.loginit import logger >>> log = logger("MyApp") >>> log.info("stuff") 2009-08-04 23:56:22,583 - MyApp - INFO - stuff Environmental Variable
If you want to print log.debug messages, you simply set the environmental variable:
LOGGING_DEBUG = 1
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
sensible-1.0.tar.gz
(1.7 kB
view details)
Built Distribution
File details
Details for the file sensible-1.0.tar.gz
.
File metadata
- Download URL: sensible-1.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38deef549f30f5ebc1a08b78fd6ee09f03e0d7f95e0c9ae6f200ef229d7dfa27 |
|
MD5 | 8a4a21474da4c4a0c0e2e8d412e9a3a7 |
|
BLAKE2b-256 | 340f357c01bc5d4c20250ad2036b00d87457ea2bf241eae6e6b8e5ab2ea770bc |
File details
Details for the file sensible-1.0-py2-none-any.whl
.
File metadata
- Download URL: sensible-1.0-py2-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 577ec91f336c3ddf36bef9705d9e13152580f81616883b3aa035dfce921f27f2 |
|
MD5 | c9f419c8c6c23c73628f437c23d1336e |
|
BLAKE2b-256 | 0824e1ff205ea57670022964e5b2f70c21c18d827b20f1179b05d17dcea5b201 |