python logging done my way
Project description
stdlogpj
python logging done my way
home: https://github.com/prjemian/stdlogpj
INSTALL
conda install -c aps-anl-tag stdlogpj
conda install -c prjemian stdlogpj
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.0.tar.gz
(23.0 kB
view hashes)
Built Distribution
Close
Hashes for stdlogpj-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4585e629d3255fbd4c9248f5e2aada0e6780527128090b40c820d1f72bdec484 |
|
MD5 | de171fb696b2574904e8af8ca10f8e6b |
|
BLAKE2b-256 | ebedc24e3071e6649edbea45039b6a15141d93838fb3154b48d03ec2cf9ce679 |