Skip to main content

python logging done my way

Project description

stdlogpj

python logging done my way

home: https://github.com/prjemian/stdlogpj

INSTALL

pip install stdlogpj

USAGE:

import stdlogpj
logger = stdlogpj.standard_logging_setup("demo")
logger.info("hello")

DEMO:

#!/usr/bin/env python

import stdlogpj

logger = stdlogpj.standard_logging_setup("stdlogpj-demo")


def thing1(i):
    logger.info(f"something #{i+1}")


def main():
    logger.info("hello")
    for i in range(5):
        logger.debug("calling thing1()")
        thing1(i)
    logger.critical("complete")


if __name__ == "__main__":
    logger.warning("before main()")
    main()
    logger.error("after main(): no error, really")

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

stdlogpj-1.0.0rc3.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

stdlogpj-1.0.0rc3-py2.py3-none-any.whl (8.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file stdlogpj-1.0.0rc3.tar.gz.

File metadata

  • Download URL: stdlogpj-1.0.0rc3.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

File hashes

Hashes for stdlogpj-1.0.0rc3.tar.gz
Algorithm Hash digest
SHA256 1c2eee0afb48ad0fab8d681edc3157235d98e4af94696dedb6a0fc9821ef9592
MD5 89fd4828f10f6444603501268c25b9a3
BLAKE2b-256 dd250da46b1065b474e864c0edb83c5cb0396a63dce7a5884a4595744ebefa35

See more details on using hashes here.

File details

Details for the file stdlogpj-1.0.0rc3-py2.py3-none-any.whl.

File metadata

  • Download URL: stdlogpj-1.0.0rc3-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

File hashes

Hashes for stdlogpj-1.0.0rc3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 97f205a9280f1caf5244d0aed6d21216f440a489a99e516b009083404460c7a8
MD5 6f88ff19cce4ce5b356889ef6e9548fc
BLAKE2b-256 2367643b3cc2ecba2475c6b9f4a7f5d99558af6d09f2689e75f461a9c5ef3158

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