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.0.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.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: handsome_log-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 1ee20a07c496f3d99ac835725eb2d1d1a8290a862d77af34ec8920039c0ca7b6
MD5 0be6c533d6de6ddf391a7ecc58c71594
BLAKE2b-256 6ec99bd48dc6c5688b5bcf4863a307bb9949243dff73ef3ff78cf2f4b74b8c2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: handsome_log-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 890d136c2441a7990134be6a0dbb990ef94f160bb7608393f2e750cd151d4db0
MD5 c48a134e7db5330c20a247d1a63a25a9
BLAKE2b-256 8004f4803bcd315ec6d0dba538a5059f87c054a9704fc080e57e71801aa9aee2

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