Automate IT operations
Project description
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 :-)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quickbelog-1.1.0.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file quickbelog-1.1.0.tar.gz
.
File metadata
- Download URL: quickbelog-1.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72dfec77483bd30047431aadf73c862e97bc8463758a767e3e35f96602cd440f |
|
MD5 | c9acdc49dce729a78d071ffae4fe5eb8 |
|
BLAKE2b-256 | 322a4add801b4d072ff6cf69a0fc4a7f0753334a1cc20794ca0153c4f71af997 |
File details
Details for the file quickbelog-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: quickbelog-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac88df20bde07dccb308f3c70139547fd30b42ba2a6dd8557aab6bdf86cfe317 |
|
MD5 | 8cfa1bae9482d7a3b27baa9618bd9dae |
|
BLAKE2b-256 | 19298308fd420663f8a636b0c06093bd22346f7c86f139dff0dd4da60d01bfde |