Skip to main content

An Python logger

Project description

rlogger

A convenient encapsulation of Python logging

Install

pip install rlogger

Use

from rlogger import RLogger
# Set log file path
RLogger.init('file.log', enable_screen=True, log_level='INFO', max_bytes=1e8, backup_count=1)
RLogger.log('your message', RLogger.INFO)
RLogger.log('your message', RLogger.DEBUG)
RLogger.log('your message', RLogger.WARNING)
RLogger.log('your message', RLogger.ERROR)
# Close log when you not need
RLogger.close()
RLogger.log('your message', RLogger.ERROR) # Will not print

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

rlogger-3.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file rlogger-3.0-py3-none-any.whl.

File metadata

  • Download URL: rlogger-3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for rlogger-3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 447b254edcde046a09728554eba53321ab2347261438ad555f0a7defddc0e0fc
MD5 639640d287f2f5ee470fdcc28f67ad53
BLAKE2b-256 36b3e0e19027db691f65221b80435582d1a10af6d587d2fb203f8f966ebd6a13

See more details on using hashes here.

Supported by

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