Skip to content

Latest commit

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

InOutLogger

Decorator based utility to implement Entry-Exit logs for methods

Getting Started

Prerequisites

python>=3.6

Installing

pip install inoutlogger

A Simple Example

frominoutlogger.utilsimportInOutLogger, Loggerfrominoutlogger.decoratorsimportentry_exit_log# With Single LoggerLOGGER# Your Application Loggerlogger1=Logger(log_handler=LOGGER, name="application_logger")
InOutLogger(logger1)
@in_out_log()deftest():
print("Demo Single log handler")
test() # See Log file for output# With Multiple LoggerLOGGER1# Your Application LoggerLOGGER2# Other Loggerlogger1=Logger(log_handler=LOGGER1, name="application_logger")
logger2=Logger(log_handler=LOGGER2, name="Other")
InOutLogger([logger1, logger2])
@in_out_log(handler_name="Other")deftest():
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

About

Decorator based utility to implement Entry-Exit logs for methods

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages