Metadata-Version: 2.1
Name: k3log
Version: 0.1.4
Summary: k3log is a collection of log utilities.
Home-page: https://github.com/pykit3/k3log
Author: Zhang Yanpo
Author-email: drdr.xp@gmail.com
License: MIT
Keywords: logging,stack
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.0
Description-Content-Type: text/markdown
Requires-Dist: semantic-version (~=2.8.5)
Requires-Dist: jinja2 (~=2.11.2)
Requires-Dist: PyYAML (~=5.3.1)
Requires-Dist: sphinx (~=3.3.1)
Requires-Dist: numpy (~=1.16.3)
Requires-Dist: k3ut (~=0.1.7)
Requires-Dist: k3proc (~=0.2.3)
Requires-Dist: k3confloader (~=0.1.0)

# k3log

[![Build Status](https://travis-ci.com/pykit3/k3log.svg?branch=master)](https://travis-ci.com/pykit3/k3log)
![Python package](https://github.com/pykit3/k3log/workflows/Python%20package/badge.svg)
[![Documentation Status](https://readthedocs.org/projects/k3log/badge/?version=stable)](https://k3log.readthedocs.io/en/stable/?badge=stable)
[![Package](https://img.shields.io/pypi/pyversions/k3log)](https://pypi.org/project/k3log)

k3log is a collection of log utilities.

k3log is a component of [pykit3] project: a python3 toolkit set.


k3log is a collection of log utilities for logging.



# Install

```
pip install k3log
```

# Synopsis

```python

# make a file logger in one line
logger = pk3logutil.make_logger('/tmp', level='INFO', fmt='%(message)s',
                                datefmt="%H:%M:%S")
logger.info('foo')

logger.stack_str(fmt="{fn}:{ln} in {func}\n  {statement}", sep="\n")
# runpy.py:174 in _run_module_as_main
#   "__main__", fname, loader, pkg_name)
# runpy.py:72 in _run_code
#   exec code in run_globals
# ...
# test_logutil.py:82 in test_deprecate
#   pk3logutil.deprecate()
#   'foo', fmt='{fn}:{ln} in {func}\n  {statement}', sep='\n')

```

#   Author

Zhang Yanpo (张炎泼) <drdr.xp@gmail.com>

#   Copyright and License

The MIT License (MIT)

Copyright (c) 2015 Zhang Yanpo (张炎泼) <drdr.xp@gmail.com>


[pykit3]: https://github.com/pykit3

