python log best practice.
Project description
reelog python log best practices
>>> 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=[reelog.OUTPUT_STDOUT, reelog.OUTPUT_FILE])
>>> logger.warning("hello world!")
>>> # output to stdout and rotate file
>>> logger = reelog.get_logger("reelog", outputs=[reelog.OUTPUT_STDOUT, reelog.OUTPUT_ROTATE_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.6.7.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file reelog-1.6.7.tar.gz
.
File metadata
- Download URL: reelog-1.6.7.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.23.4 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddffd4630ba00688610cbfb18600d3cb3744d9638accbc3d4654598d3769eb77 |
|
MD5 | 355db4da1186aab1d66e6d3a4620a9c0 |
|
BLAKE2b-256 | eced3085ffe1abe638c0abf30670e7164db07b3aa1e04a64013b7c33d627a2a6 |
File details
Details for the file reelog-1.6.7-py2.py3-none-any.whl
.
File metadata
- Download URL: reelog-1.6.7-py2.py3-none-any.whl
- Upload date:
- Size: 4.1 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.23.4 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 219bed38e69032ba693df0639c81188ed86d59cd4857b1ddb49390462797967d |
|
MD5 | bec7bbc2c3733434c2b6d3a2cea49dc4 |
|
BLAKE2b-256 | f546079de02e1fa3649f8f313bb05960457c46bf03a098b5f2918a5dba9234fa |