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", stdout=Ture, file=Ture)
>>> logger.warning("hello world!")
>>> # output to stdout and rotate file
>>> logger = reelog.get_logger("reelog", stdout=Ture, rotate_file=Ture)
>>> 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.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: reelog-1.7.1.tar.gz
  • Upload date:
  • Size: 3.8 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.1.tar.gz
Algorithm Hash digest
SHA256 2ce45c3c2c80f2feef82ccdf27dae96309b35dee3e22d89e84fa710b6568c26e
MD5 3511e2cfccb3f02bea701722e6215891
BLAKE2b-256 06613d1be35f468a7134a1c8b652f56c18be405d46b67278f3292362a3743886

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reelog-1.7.1-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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c444a0863a24b396d27cb69d123d04c85cbd5c648d3892551736cbe6e14a2454
MD5 522e104269f1a07161e1d0aeda658326
BLAKE2b-256 fd216a20b1031e4cc116320bb3a938505d2510e504314b9018ed55d4b26cdfd1

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