Skip to main content

Wrapper package to the logging std module

Project description

Util-Logs

  1. Introduction
  2. Features
  3. Getting Started
  4. Prerequisites
  5. Usage
  6. Contributing
  7. License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

util_logger-0.3.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

util_logger-0.3.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file util_logger-0.3.1.tar.gz.

File metadata

  • Download URL: util_logger-0.3.1.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

Hashes for util_logger-0.3.1.tar.gz
Algorithm Hash digest
SHA256 adca03e45efbc9af9031e765e30467e3a0021fef520525532d95da9c4f9adffb
MD5 13eacf95b4f208153f763d85339da136
BLAKE2b-256 c34bcd40a0eff8d44c3701b45a0df17e4f4d631bbaed116583cd7a7659f16258

See more details on using hashes here.

File details

Details for the file util_logger-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: util_logger-0.3.1-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

Hashes for util_logger-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ddafeb291863ca7d7b3a4c619ebc08e934c5960acf3b3d72719deb5f5f44c16
MD5 359370d05440618dbde38c2e5990de98
BLAKE2b-256 6a8dd752821ff9dcc4570ea1533a8b9277e0692a978cdab430786853981086f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page