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.1rc1.tar.gz
(23.0 kB
view hashes)
Built Distribution
Close
Hashes for stdlogpj-1.0.1rc1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a96ad827c24a43dbe413929c79d4f43f67179a3464562be361e75a09dae611c2 |
|
MD5 | 9ba015f7b0db09357e3f60264d9e1578 |
|
BLAKE2b-256 | d89524ef48b7fd9654105ac9993aa3f2f908dda4d536abd4656ab3db2b6d5f60 |