Metadata-Version: 2.1
Name: log-indented
Version: 0.2.0
Summary: log-indented helps you create human friendly logs.
Home-page: https://github.com/markmark206/log-indented
Author: Mark Markaryan
Author-email: markmark206+log_indented@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# log-indented

[![Python application](https://github.com/markmark206/log-indented/actions/workflows/python-test.yml/badge.svg)](https://github.com/markmark206/log-indented/actions/workflows/python-test.yml)

This is a package for producing indented, easy to understand logs.

Example:

Executing compute_the_answer()

```python
from log_indented import logged, log_info

@logged
def compute_the_answer() -> int:
    for i in range(10):
        time.sleep(0.2)
        log_info(f"{i}, computing the answer")
    return 42
```

will produce output similar to this:

```
    + compute_the_answer: enter
      compute_the_answer: 0, computing the answer
      compute_the_answer: 1, computing the answer
      ...
      compute_the_answer: 9, computing the answer
    - compute_the_answer: exit. took 2,558.9 ms.
```


