Simple Logging Facade for Python
Project description
slf4py
Simple Logging Facade for Python.
How to use
# at Terminal
$ pip install slf4py
# at example.py
from slf4py import set_logger
@set_logger
class Example:
def hi(self):
self.log.info("Hello World")
e = Example()
e.hi()
# [INFO] [2022-05-01 11:22:35,493] [example.py:9] Hello World
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
slf4py-0.0.2.tar.gz
(1.6 kB
view hashes)
Built Distribution
slf4py-0.0.2-py3-none-any.whl
(1.9 kB
view hashes)