Skip to main content

Decorator based utility to implement Entry-Exit logs for methods

Project description

InOutLogger

Decorator based utility to implement Entry-Exit logs for methods

Getting Started

Prerequisites

python>=3.6

Installing

pip install inoutlogger

A Simple Example

from inoutlogger.utils import InOutLogger, Logger
from inoutlogger.decorators import entry_exit_log

# With Single Logger
LOGGER # Your Application Logger
logger1 = Logger(log_handler =LOGGER,  name="application_logger")

InOutLogger(logger1)

@in_out_log()
def test():
  print("Demo Single log handler")

test() # See Log file for output

# With Multiple Logger
LOGGER1 # Your Application Logger
LOGGER2 # Other Logger
logger1 = Logger(log_handler =LOGGER1,  name="application_logger")
logger2 = Logger(log_handler =LOGGER2,  name="Other")

InOutLogger([logger1, logger2])

@in_out_log(handler_name="Other")
def test():
  print("Demo Multiple log handler")

test() # See Log file for output  

License

This project is licensed under the MIT License - see the LICENSE.md file for details

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

inoutlogger-1.0.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

inoutlogger-1.0.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inoutlogger-1.0.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for inoutlogger-1.0.3.tar.gz
Algorithm Hash digest
SHA256 04ebb6fcc44541dd32d49cff63985082a8620311f1514465fd8eb629f4dea083
MD5 7e9df6037fdd1658e9903262043b3c54
BLAKE2b-256 0fced439b3b25530312eca6d2d67e8e6da84d149e7d24559b19670d5e6ac5cb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: inoutlogger-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

File hashes

Hashes for inoutlogger-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ad6a209b5f0db40efae70155130bb7ae85e38401641f7e8ede00fbc9cc77606c
MD5 75d3e955b39b5ebc3af5264bbb070db2
BLAKE2b-256 ec674994a58efaa4b6b0c954859c84e59bb99f9e063f457f316373146bf7bb9b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page