Skip to main content

package for easy logging

Project description

https://badge.fury.io/py/logme.svg https://travis-ci.org/BNMetrics/logme.svg?branch=master https://codecov.io/gh/BNMetrics/logme/branch/master/graph/badge.svg Documentation Status

Logme is a Python package that makes logging simple and robost. If you have found logging in Python not so straight forward, download this package and give it a try! :)

In A Nutshell

If you have a function you want to log, you can do this in your python file:

import logme


@logme.log
def my_awesome_function(my_arg, logger=None):
    logger.info('this is my log message')
    """rest of the function"""

You can do the same with classes too:

import logme


@logme.log
class MyAwesomeClass:
    def my_function(self, my_arg):
        self.logger.info('this is my log message')

pretty nice right? :)

Documentation

You can find the documentation at http://logme.readthedocs.io/en/latest/ . Give it a try!

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

logme-1.1.0.tar.gz (10.7 kB view hashes)

Uploaded Source

Built Distribution

logme-1.1.0-py2.py3-none-any.whl (17.6 kB view hashes)

Uploaded Python 2 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