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.0.tar.gz (3.6 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.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: logorator-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 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.0.tar.gz
Algorithm Hash digest
SHA256 a760702467ed1d138cf6bbc4d88bf1f1922e20cf6b6f35b77aa07ac6a7131777
MD5 3193e2bf40e439599d643dc5e97ae577
BLAKE2b-256 52d3c8b6aec6afe24b415e9dac7b9c7792ca7bb095e1b3c560cbee15889a1b68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: logorator-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47b355c4337730659f5aa714f450b32e66691b98af7864b517c3a2fcd68ddb42
MD5 7a2a5b8405b0b04fb58d8eb8397a5a1d
BLAKE2b-256 7399cb1b2b4f8648a187ee7c7e36b9509a7827ef48d518eb6d937931cc013b6f

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