Skip to main content

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, 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.2.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

sensible-1.0.2-py2-none-any.whl (2.7 kB view details)

Uploaded Python 2

File details

Details for the file sensible-1.0.2.tar.gz.

File metadata

  • Download URL: sensible-1.0.2.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sensible-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8ffafd0c5ba7b0e2128ccaf88aa68febbfc2b795af58409f92eab8015eb5fcf9
MD5 4312b92b96f352bb703307f9ce31790f
BLAKE2b-256 2e44801e7fc9b719439b122a6e2d021a3c97ba1ead92eeb9dc09119a7d31b8b3

See more details on using hashes here.

File details

Details for the file sensible-1.0.2-py2-none-any.whl.

File metadata

File hashes

Hashes for sensible-1.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 ac8b741607d4777e410688710a8557be6189692c5b0fbf073436c634f5006283
MD5 9f741154b56df81774948de0b7dfa2dd
BLAKE2b-256 7c46db23b4cf27015ad87bec08f8d62eefb45a1e76796040dad82537cf48c944

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