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
Release files for rlogger 3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rlogger-3.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / rlogger-3.0-py3-none-any.whl
| Download URL | rlogger-3.0-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
447b254edcde046a09728554eba53321ab2347261438ad555f0a7defddc0e0fc
|
|
BLAKE2b-256 checksum How to use checksums |
36b3e0e19027db691f65221b80435582d1a10af6d587d2fb203f8f966ebd6a13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|