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.0rc5.tar.gz
(22.9 kB
view details)
Built Distribution
File details
Details for the file stdlogpj-1.0.0rc5.tar.gz
.
File metadata
- Download URL: stdlogpj-1.0.0rc5.tar.gz
- Upload date:
- Size: 22.9 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 | 3557b3dacc2c17454c9800ba5e9df122efbfebf15fa306d9146ab9ad39fd68df |
|
MD5 | 9d3625718bfe03e9c0d5c4a9f2a14085 |
|
BLAKE2b-256 | a011cb5f1ea39dc89a71c5848d8e71cb354d676b73367abeb2395114193ccb7e |
File details
Details for the file stdlogpj-1.0.0rc5-py2.py3-none-any.whl
.
File metadata
- Download URL: stdlogpj-1.0.0rc5-py2.py3-none-any.whl
- Upload date:
- Size: 1.8 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 | 5cc169295c3ae37cd1603511023f3c8a06c4225b79b5eee1cd32c4906e56fc87 |
|
MD5 | 33a96e0c31a3352be1aaf62672f2137d |
|
BLAKE2b-256 | a0dac4db7706961acd1a3bebb32fafd3b687fe6ba6145822ffc0b7ee964e0b61 |