Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

('Set logger with logging/colorlog automatically',)

Project description


Get module logger with environment variables

Build Status

Environment variables

modlog using environment variables

If module name: a.b.c, the environment variable is:


values are compatible with logging module, following values are supported:

  • notset
  • debug
  • info
  • warning
  • error
  • critical
        50: 'CRITICAL', 
        40: 'ERROR', 
        30: 'WARNING', 
        20: 'INFO', 
        10: 'DEBUG', 
        0: 'NOTSET'


import modlog

logger = modlog.getLogger(__name__) # This will read environment variables and set logger level"a")

Project details

Download files

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

Files for modlog, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size modlog-0.0.2-py2.py3-none-any.whl (3.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size modlog-0.0.2.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page