Skip to main content

Python decorator that makes functions use a logger instead of print.

Project description

PrinToLog

A decorator that will make calls to print within the decorated function be logged instead.

Supports custom logging handlers.

See example.py for examples.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

printolog-0.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

printolog-0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file printolog-0.1.tar.gz.

File metadata

  • Download URL: printolog-0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for printolog-0.1.tar.gz
Algorithm Hash digest
SHA256 75de7024fde3599b45513f665522b0c1bae21fd850e0b19175d5967e8386dc30
MD5 d0c04f0cced18872400e9888ebce802a
BLAKE2b-256 d598d3fa6b84417e6027fa0dc3d173487ec3ab85eb8882d8a0b035066802a48a

See more details on using hashes here.

File details

Details for the file printolog-0.1-py3-none-any.whl.

File metadata

  • Download URL: printolog-0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for printolog-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5bffdc50b021d72dd85f0e06735212b34fcdd9fbc183f532484ff94c401d2947
MD5 0cb241448433dcae96fc5caf1229f268
BLAKE2b-256 85845921f19bed8c70b99a777c736ffce6532ae7ec625eda011e2d6e9c9268d9

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