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

Uploaded Python 3

File details

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

File metadata

  • Download URL: logorator-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 8ae11dd5cce8c44cfb8d81902b9b6dc1182fced3fdebb2262f0072cb71b42633
MD5 8943e41ffe6cc91c20001745a3cdda6e
BLAKE2b-256 a4bf81cc0650c89a6463ebe5684c628d7027e9d705f4178e08cd39cc30344ecd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: logorator-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cc512e355c7c3eefd84956eca4a7c86f2ed7c4c67ddd01f827e03fa740827f13
MD5 32729ae338e3f131b2c2da3fb801799e
BLAKE2b-256 59894bc03eda4d41afc95fb317267977e4294d32634f60cb437743fa54613de0

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