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 details)
Built Distribution
File details
Details for the file stdlogpj-1.0.1rc1.tar.gz
.
File metadata
- Download URL: stdlogpj-1.0.1rc1.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 | f63f97719f994f278c2c1a4735ad0873a633c5243d0f2d6d2e8fe28a5181249b |
|
MD5 | 8d74dbf50ac1affbac22514b0eb6d429 |
|
BLAKE2b-256 | 28caf90141a564e3710793be8c6deca7bbf66a65d27c7ae4cb724c126e931f93 |
File details
Details for the file stdlogpj-1.0.1rc1-py2.py3-none-any.whl
.
File metadata
- Download URL: stdlogpj-1.0.1rc1-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 | a96ad827c24a43dbe413929c79d4f43f67179a3464562be361e75a09dae611c2 |
|
MD5 | 9ba015f7b0db09357e3f60264d9e1578 |
|
BLAKE2b-256 | d89524ef48b7fd9654105ac9993aa3f2f908dda4d536abd4656ab3db2b6d5f60 |