Skip to main content

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


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.7.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

reelog-1.7-py2.py3-none-any.whl (4.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file reelog-1.7.tar.gz.

File metadata

  • Download URL: reelog-1.7.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.3.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15

File hashes

Hashes for reelog-1.7.tar.gz
Algorithm Hash digest
SHA256 15da156548b19cca7c24658cddbeed6df7f9d89179fa24cd07b60ad0763f3e18
MD5 8c762afc4dfb07d80aa9f49f47e0f324
BLAKE2b-256 cb3a4ccd10f1bea6396e9a7d0a62c9b2f7c3a475d17cbd270b7f00c89b7c73d7

See more details on using hashes here.

File details

Details for the file reelog-1.7-py2.py3-none-any.whl.

File metadata

  • Download URL: reelog-1.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.3.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15

File hashes

Hashes for reelog-1.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 033e3e965de8df5322c65d9d3c16298b66402af3c61c082eb35cfe1a20a6b925
MD5 2e469d05947c267f0ada7172ce34ce1c
BLAKE2b-256 a3f2ae70f48abe71d3458844613efdf96858c83c5b22a743e1d60076f35fb9b4

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