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.0rc3.tar.gz
(19.1 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c2eee0afb48ad0fab8d681edc3157235d98e4af94696dedb6a0fc9821ef9592 |
|
MD5 | 89fd4828f10f6444603501268c25b9a3 |
|
BLAKE2b-256 | dd250da46b1065b474e864c0edb83c5cb0396a63dce7a5884a4595744ebefa35 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97f205a9280f1caf5244d0aed6d21216f440a489a99e516b009083404460c7a8 |
|
MD5 | 6f88ff19cce4ce5b356889ef6e9548fc |
|
BLAKE2b-256 | 2367643b3cc2ecba2475c6b9f4a7f5d99558af6d09f2689e75f461a9c5ef3158 |