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")
# 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
def test(handler_name="Other"):
print("Demo Multiple log handler")
Authors
- Pankaj Suthar - Initial work - PankajSuthar
License
This project is licensed under the Apache 2.0 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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for inoutlogger-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e309d9fb6b6a85349c96bc9ed6d163973177625e88cc555ae58fdef5235e6664 |
|
MD5 | 2b44e2ca5829b8a130f281a742c04aec |
|
BLAKE2b-256 | 3661033bd44c37db90847cd4a493690d333bebc8ef350d6eb246b79a14a45a55 |