Metadata-Version: 2.1
Name: ezpylogger
Version: 0.1.3
Summary: ezpylogger: Log easier and simpler
Home-page: https://github.com/bonohub13/ezpylogger.git
Author: Kensuke Saito
Author-email: bebf.heavysec@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.4
Description-Content-Type: text/markdown
License-File: LICENSE

# ezpylogger: Logging made simpler
- - -
## What is this?
This is an easy to use, logging library that can log function calls of ANY functions! \
This includes functions that you've made, functions that have been predefined. (Like any functions/methods that are included in other libraries)

## How do you use this?
Simple, just import the ezpylogger module and use the Logger to log function calls. \
Example:
``` python
from ezpylogger import Logger
from time import sleep

@Logger()
def add(a, b):
    return a + b

class Mul:
    logger = Logger()

    def __init__(self):
        pass

    @logger
    def __call__(self, *args, **kwargs):
        numbers = [ arg if arg.__class__.__name__ == 'int' or arg.__class__.__name__ == 'float' else 1 for arg in args ]
        rv = [1]
        for number in numbers:
            rv[0] *= number

        # Some very heavy computational task
        self.logger(sleep)(30)

        return rv + numbers

seven = add(3, 4)
prod = Mul()(1, 2, 3, 4, 5, 6, 7, 0.08, 0.69, 4.20)
```

## Installation
``` bash
python3 -m pip install ezpylogger
```
