Quick using logger
This small project purpose is to add nice and clean logs to your app.
Just import the quickbelog.Log class wherever you need and start using it.
To make debugging easier by default it will include the name of the source file and line number in order to understand what code line is responsible for the output.
Usage:
from quickbelog import Log
Log.info(msg='This is an info message')
Log.debug(msg='This is a debug message')
Log.warning(msg='This is a warning message')
Log.error(msg='This is an error message')
try:
raise ValueError('Just for testing')
except ValueError:
quickbe.Log.exception('Something failed')
Output
2022-03-14 15:54:03,411 > INFO test_logger.py(17) method: test_basic_log_message This is an info message
2022-03-14 15:54:03,411 > DEBUG test_logger.py(21) method: test_debug_message This is a debug message
2022-03-14 15:54:03,411 > WARNING test_logger.py(29) method: test_warning_message This is a warning message
2022-03-14 15:54:03,412 > ERROR test_logger.py(33) method: test_error_message This is an error message
2022-03-14 15:54:03,412 > ERROR test_logger.py(13) method: test_exception_logging Something failed
Traceback (most recent call last):
File ".\test_logger.py", line 11, in test_exception_logging
raise ValueError('Just for testing')
ValueError: Just for testing
Have fun :-)
Metadata
Release files for quickbelog 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quickbelog-1.1.0.tar.gz | 3.5 kB | Without provenance | Details for quickbelog-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quickbelog-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for quickbelog-1.1.0-py3-none-any.whl |
Total release size: 7.3 kB
Release files / quickbelog-1.1.0.tar.gz
| Download URL | quickbelog-1.1.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72dfec77483bd30047431aadf73c862e97bc8463758a767e3e35f96602cd440f
|
|
BLAKE2b-256 checksum How to use checksums |
322a4add801b4d072ff6cf69a0fc4a7f0753334a1cc20794ca0153c4f71af997
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8
|
Release files / quickbelog-1.1.0-py3-none-any.whl
| Download URL | quickbelog-1.1.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac88df20bde07dccb308f3c70139547fd30b42ba2a6dd8557aab6bdf86cfe317
|
|
BLAKE2b-256 checksum How to use checksums |
19298308fd420663f8a636b0c06093bd22346f7c86f139dff0dd4da60d01bfde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8
|
Security for quickbelog 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.