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
Release history Release notifications | RSS feed
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.1rc2.tar.gz
(23.0 kB
view details)
Built Distribution
File details
Details for the file stdlogpj-1.0.1rc2.tar.gz
.
File metadata
- Download URL: stdlogpj-1.0.1rc2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | df7ed098ef60ed04b317d0837ec9170758177939e2da32142333d75c084cfb06 |
|
MD5 | 8a411aa0c3cdc8edcd38f3614778f8f3 |
|
BLAKE2b-256 | 7e2578331a432d8697b9d8e77d79835f21c57c292da41a7f220692ea85d99f1c |
File details
Details for the file stdlogpj-1.0.1rc2-py2.py3-none-any.whl
.
File metadata
- Download URL: stdlogpj-1.0.1rc2-py2.py3-none-any.whl
- Upload date:
- Size: 8.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77061aecbec8ccc753d288f5d3f50ecc4d75da5bc9e4a0a748d20dc1c8171c3e |
|
MD5 | 53915a668d85cc3a30a4edc9081f1ebc |
|
BLAKE2b-256 | 1caf4bedb817c8b58c7bf4a2abbbdd4984d1b799d5e9cbffef7f08d30b2dab4e |