Skip to main content

A decorator-based logging library with hierarchical structure, ANSI color support, and configurable outputs.

Project description

logorator

A decorator-based logging library for Python, featuring hierarchical structure, ANSI color support, and configurable outputs.

Installation

pip install logorator

Quick Start

from logorator import Logger

@Logger()
def example_function(x, y):
    return x + y

example_function(3, 5)

# Output:
# Running example_function
#  3
#  5
# Finished example_function Time elapsed: 0.10 ms

Features

  • Function Call Logging: Logs function calls, arguments, and execution times.
  • Custom Notes: Add notes to your logs.
  • ANSI Color Support: Makes console logs visually appealing.
  • File Output: Write logs to a file, creating directories if needed.
  • Thread-Safe Logging: Handles nested and concurrent function calls.

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

logorator-1.0.4.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

logorator-1.0.4-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file logorator-1.0.4.tar.gz.

File metadata

  • Download URL: logorator-1.0.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for logorator-1.0.4.tar.gz
Algorithm Hash digest
SHA256 d37349f96c1526463f15ea3caf97e52939686ad651ff3bcd280203a42fd497c7
MD5 53175c1647ad17eec83e265d0c6fc4f1
BLAKE2b-256 1b44540b2442824271bfe923764361826561832ef61eac6e1fb8eb9d7fa20606

See more details on using hashes here.

File details

Details for the file logorator-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: logorator-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for logorator-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1ad20ee3f0dc8514344a0eb4b84738716efd6e8430ecbd7b114c314e8eacaeb0
MD5 5ccb6c29e42f7e937d0cf63b84da4a5d
BLAKE2b-256 f0da7983c5b3fbb9ac3f76d8a6449effde357b6578f71b0f4056fea32db8d8c1

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