Skip to main content

Modlog

Get module logger with environment variables

Build Status

Environment variables

modlog using environment variables

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

  • {A}_LOG_LEVEL

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'
}

Example

import modlog

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

logger.info("a")

Metadata

Release files for modlog 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for modlog 0.0.2
File Size Uploaded Provenance Actions
modlog-0.0.2.tar.gz 2.9 kB Without provenance Details for modlog-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for modlog 0.0.2
File Interpreter ABI Platform Actions
modlog-0.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for modlog-0.0.2-py2.py3-none-any.whl

Total release size: 6.8 kB

Release files / modlog-0.0.2.tar.gz

Download URL modlog-0.0.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e4a3b1cea6702e90bec83339d5ec8eba9c71e406b49ac1c98779208da59e2cbc
BLAKE2b-256 checksum
How to use checksums
fa624fb2e5e0500387fbbd32597fc112be7bbacbfafa3c33417588eb05f9c0db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

Release files / modlog-0.0.2-py2.py3-none-any.whl

Download URL modlog-0.0.2-py2.py3-none-any.whl
Size 3.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7dff8891368d75c5140f27d68c1995546601c6a6af155e5972e33b7e4bd819cd
BLAKE2b-256 checksum
How to use checksums
d741e9b788809e20ff8ce220b0719693fff3ce2f73e9f2021c50848fba6bc3ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

Security for modlog 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page