Skip to main content

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

Release files for inoutlogger 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inoutlogger 1.0.3
File Size Uploaded
inoutlogger-1.0.3.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for inoutlogger 1.0.3
File Interpreter ABI Platform
inoutlogger-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / inoutlogger-1.0.3.tar.gz

Download URL inoutlogger-1.0.3.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
04ebb6fcc44541dd32d49cff63985082a8620311f1514465fd8eb629f4dea083
BLAKE2b-256 checksum
How to use checksums
0fced439b3b25530312eca6d2d67e8e6da84d149e7d24559b19670d5e6ac5cb7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / inoutlogger-1.0.3-py3-none-any.whl

Download URL inoutlogger-1.0.3-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad6a209b5f0db40efae70155130bb7ae85e38401641f7e8ede00fbc9cc77606c
BLAKE2b-256 checksum
How to use checksums
ec674994a58efaa4b6b0c954859c84e59bb99f9e063f457f316373146bf7bb9b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page