Pip install-able library that logs the function functionality in log file. Function logger is a decorator that logs the function name and function argument when function is called and return parameters of functions when function is ended
Installation Instruction!
===================
>- Activate your Virtual Environment.
>- pip install function-logger
----------
**function-logger** is library having function logger that logs the function parameters.
# Features
1. Function logger library comes with a function_logger decorator that takes a logger and logs the request paramters with function name and logs the return of function.
# Usage
1. Import function logger library
- `from function_logger import function_logger`
# Example
```python
from function_logger import function_logger
from logger import logger
# logger of your project
@function_logger(logger)
def log_function(name=None, age=None):
logger.debug("Inside log function")
return dict(bmi=19)
if __name__ == "__main__":
bmi = log_function(name="hello", age=13)
print bmi
```
Metadata
Release files for function-logger 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| function_logger-0.2.tar.gz | 2.4 kB | Without provenance | Details for function_logger-0.2.tar.gz |
Release files / function_logger-0.2.tar.gz
| Download URL | function_logger-0.2.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f98e25136aaa4b0a656b456264925f8debf1d9bf8813db945c1b6d0e07791891
|
|
BLAKE2b-256 checksum How to use checksums |
96d6f1b79eaeda7c206c35ef6f5c4f7dc3fa1e6e26e74cbc040a2845e17a4bef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for function-logger 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.