Skip to main content

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)

Source distribution for quickbelog 1.1.0
File Size Uploaded
quickbelog-1.1.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quickbelog 1.1.0
File Interpreter ABI Platform
quickbelog-1.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page