Skip to main content

Super simple, colorized, thread-safe logging tool for Python beginners.

Project description

gatolog by gatodata

The simplest way to log your Python applications with colors and file support without complex boilerplate setups. Perfect for beginners and fast-prototyping!

Features

  • 🎨 Colorized Output: Clear visual logs out of the box (Windows, Linux, macOS).
  • 📂 File Logging: Write clean, uncolored logs to files by just providing a path.
  • 🧵 Thread Safe: Safe for multitasking applications.
  • 🧠 Smart Decorator: Easily track function runtimes and catch deep tracebacks on crashes.

Installation

pip install gatolog

Usage

Simple Functions

import gatolog

# Log to console only
gatolog.info("Everything is working smoothly.")
gatolog.warning("Resource usage is a bit high...")
gatolog.error("Database connection lost!")

# Log to console AND to a specific file automatically
gatolog.info("User logged in successfully", file_path="logs/app.log")

Smart Decorator

import gatolog

@gatolog.log_action(file_path="logs/actions.log")
def process_division(x, y):
    return x / y

process_division(10, 2)  # Logs execution success and exact speed
process_division(10, 0)  # Logs the error, time spent, and full error traceback!

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

gatolog-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

gatolog-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gatolog-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for gatolog-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3fbd1f39222abc0273442d9d88f78e751d688fa302f4116568e516c9084f85fc
MD5 47d9ad58e819084655970cfb6952923b
BLAKE2b-256 5250bb188cde036e9546f04de1aae1769b3bca2afa1dac5c3a3d8ace85af26a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gatolog-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for gatolog-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8df04fb9b73bbedce705718fca9d28fabd920dc83553d3c744594de202bc3b0a
MD5 f221ffe3bd31eb7d34197922e3df4146
BLAKE2b-256 562e52ec8e0b70aa4ed9bbcd8129884f0b82faad820b2604f7f014213f41c11d

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