Skip to main content

Universal logger with custom levels for ETL and automation processes.

Project description

handsome_log

handsome_log is a universal logger designed for ETL pipelines, automation tasks, and web scraping scripts in Python.

This library is built on top of Python's standard logging module and the excellent colorlog package. Full credit and gratitude go to the developers of those foundational libraries.

The main goal of handsome_log is to provide custom log levels that make it easier to structure and monitor all stages of your data processes. These levels help you track your pipeline with meaningful, semantically distinct messages.

By default, the following custom levels are included:

Level When to Use Color
STARTUP When initializing or starting a process Bold Blue
VALIDATION When validating data, schema, or credentials Blue
DRY_RUN For simulation runs that don't commit any changes Purple
SUCCESS When a process completes successfully Bold Green
INFO For general runtime information Green
WARNING When something unexpected happens, but the process continues Yellow
ERROR When a failure occurs but the system stays alive Red
CRITICAL When a critical error occurs and the process halts Bold Red
DEBUG For detailed technical/debugging messages Cyan

Installation

Install via pip:

pip install handsome_log

Features

Normal logging with colors

Normal logging without colors

For loop logging

Usage

To import and use the library you can use:

#import
from handsome_log import get_logger 

#create logger object
logger = get_logger(__name__)

#testing different logging levels
logger.startup("Startup Script")
logger.info("General Info")
logger.validation("Validation Logging")
logger.dry_run("TEST RUN")
logger.success("Success information")
logger.warning("Warning")
logger.error("Error")
logger.critical("Critical Error")

handsome_log_example_01

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

handsome_log-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

handsome_log-0.1.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file handsome_log-0.1.1.tar.gz.

File metadata

  • Download URL: handsome_log-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for handsome_log-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d0e490b767e2b5f2c324f141845758a555e9b22ae1cfe5cf7d0864105645eb98
MD5 7e2622ec34e522858a89d7a98aaa47c8
BLAKE2b-256 40090e3e81eed6433ddec7db5f83be9e5daf343b21ecd41842da8c5348572177

See more details on using hashes here.

File details

Details for the file handsome_log-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: handsome_log-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for handsome_log-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 21a13287ff5954f47e67a8b3792be13239aba2e5ca175b572b2ff52e596da15d
MD5 e2d01ec2b44f0714dba4a70cacd32748
BLAKE2b-256 4e0da4e3ef90cf98559aef21119b873dc8fe2323cb9400cfda7855786a284f11

See more details on using hashes here.

Supported by

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