python log best practice.
Project description
>>> import reelog
>>> # root logger
>>> logger = reelog.get_logger()
>>> logger.info("hello world!")
>>> # reelog name logger
>>> logger = reelog.get_logger("reelog")
>>> logger.error("hello world!")
>>> # output to stdout and file
>>> logger = reelog.get_logger("reelog", outputs=["stdout", "file"])
>>> logger.warning("hello world!")
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
reelog-1.4.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file reelog-1.4.tar.gz
.
File metadata
- Download URL: reelog-1.4.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd31bd23a3c8ac8a5fe15f57a975b5b29b2ef8ba147209e7f35d7f090c19ae5d |
|
MD5 | 207c8da145fca09e192498c47fab680e |
|
BLAKE2b-256 | b282d4b5350b31a3fb1cd6090f3a1145c266523cd969c0bb5c1301c50449b14a |
File details
Details for the file reelog-1.4-py2.py3-none-any.whl
.
File metadata
- Download URL: reelog-1.4-py2.py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29c635fbd8cda010e2ba1a241be1bdfacabf03f791a4f9969fbe039e5bbb20fc |
|
MD5 | c6129d625999483863c1a6a64cabf0af |
|
BLAKE2b-256 | 9fc10739ec3bdccabb51f2909fa22f12a577ef1ceaaa549b18411a79587880a2 |