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 hashes)
Built Distribution
Close
Hashes for stdlogpj-1.0.0rc3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97f205a9280f1caf5244d0aed6d21216f440a489a99e516b009083404460c7a8 |
|
MD5 | 6f88ff19cce4ce5b356889ef6e9548fc |
|
BLAKE2b-256 | 2367643b3cc2ecba2475c6b9f4a7f5d99558af6d09f2689e75f461a9c5ef3158 |