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.1rc3.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

stdlogpj-1.0.1rc3-py2.py3-none-any.whl (8.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: stdlogpj-1.0.1rc3.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 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.1rc3.tar.gz
Algorithm Hash digest
SHA256 cb405fe16b42d60317cca2442244d88c542d06c9e3e31c51440b741e94020882
MD5 d04148b8bdf9403c9da6e4176476a131
BLAKE2b-256 9f4c1a564d34162a97c3158f5a1911c124af87d39a4acbbef1183b723ba7d6d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stdlogpj-1.0.1rc3-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 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.1rc3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f835496ad0013329727f17dada3e3907ec45344d1d14274d29925b55db889707
MD5 7b78b0c42381c0c71dfcc58c12d3aeb5
BLAKE2b-256 39643def466489973e33997bf460b50e611f8c795cf288614d0aa610a4bb9ee7

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