Skip to main content

Decorator based utility to implement Entry-Exit logs for methods

Project description


Decorator based utility to implement Entry-Exit logs for methods

Getting Started




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")


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])

def test():
  print("Demo Multiple log handler")

test() # See Log file for output  


This project is licensed under the MIT License - see the 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.

Files for inoutlogger, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size inoutlogger-1.0.3.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View
Filename, size inoutlogger-1.0.3-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page