Skip to main content

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


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)

Uploaded Source

Built Distribution

reelog-1.4-py2.py3-none-any.whl (3.8 kB view details)

Uploaded Python 2 Python 3

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

Hashes for reelog-1.4.tar.gz
Algorithm Hash digest
SHA256 fd31bd23a3c8ac8a5fe15f57a975b5b29b2ef8ba147209e7f35d7f090c19ae5d
MD5 207c8da145fca09e192498c47fab680e
BLAKE2b-256 b282d4b5350b31a3fb1cd6090f3a1145c266523cd969c0bb5c1301c50449b14a

See more details on using hashes here.

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

Hashes for reelog-1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 29c635fbd8cda010e2ba1a241be1bdfacabf03f791a4f9969fbe039e5bbb20fc
MD5 c6129d625999483863c1a6a64cabf0af
BLAKE2b-256 9fc10739ec3bdccabb51f2909fa22f12a577ef1ceaaa549b18411a79587880a2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page