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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size inoutlogger-1.0.1-py3-none-any.whl (4.4 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size inoutlogger-1.0.1.tar.gz (3.0 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for inoutlogger-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0567b738425248cc13ac47c442454891acaa450aeccf6e3701935b90db5216ce |
|
MD5 | 045c39cd3fade41b8041c3e492c6eee9 |
|
BLAKE2-256 | 6ff960c7d14f29da3b9a2a790819367f882b0fd2129b0458fc39b7aa0d7e966f |