Skip to main content

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


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)

Uploaded Source

Built Distribution

slf4py-0.0.2-py3-none-any.whl (1.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page