Wrapper package to the logging std module
Project description
Util-Logs
Introduction
A logging utility that integrates Python's built-in logging library with enhanced features like color-coding and file line tracing.
Features
- Easy setup: Simply instantiate the Logger class with a logger name.
- Level-based color-coding: Each log level has its own color, making it easier to visually scan logs.
- Traceback information: Have the option to include filename and line number in your logs for easier debugging.
Getting Started
Use the package manager Poetry to install Util-Logs:
poetry add util-logs
Prerequisites
- Python >= 3.10.x
Usage
Here is a basic example on how to use Util-Logs:
from util_logs import Logging
Initialize the logger
logger = Logging('MyLogger')
Log some messages
logger.debug('This is a debug message')
logger.info('This is an info message')
logger.warning('This is a warning message')
logger.error('This is an error message')
logger.critical('This is a critical message')
Contributing
Contributions are welcome! Please fork the repository and create a Pull Request with your changes.
License
Util-Logs is licensed under the MIT License. See the LICENSE file for more details.
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
Built Distribution
File details
Details for the file util_logger-0.3.0.tar.gz
.
File metadata
- Download URL: util_logger-0.3.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
13573d153afcd465b5c42295677d178b77580435e1510077651decf592794f31
|
|
MD5 |
6b6cc2900d7aab2f73576e8583e992ed
|
|
BLAKE2b-256 |
94e22218d4da7351fbf44cccc22af58c34725d629702757cc4ef2c50c3087f7e
|
File details
Details for the file util_logger-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: util_logger-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d609345636416575f752cfee898e3896fc19d830824ae7dc7760baf8ccda7dcb
|
|
MD5 |
0b0ab51b07b2439bbdf14202544b168c
|
|
BLAKE2b-256 |
6c09834e6f316a922ad2bd2099624489f8075acb7e898f541e26af39e12d4a2c
|