package for easy logging
Project description
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! :)
v1.2.0 Updates
logme package now supports color and styling output in the terminal!
The colors and style is customizable in logme.ini, here is a screenshot of how it looks like in the terminal:
To use color output in logme, make sure your logme package and logme.ini is up-to-date.
Check the configuration details here.
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
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
Built Distribution
Hashes for logme-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0036ea469a9f743dda1217599ccf62dce438f1418df8f6885d3562c7b9770e20 |
|
MD5 | 5b4e419f54d1fdd3b59ae0504dad345a |
|
BLAKE2b-256 | 229adc48fecf06c045723c490cc47167e075b2c5568ebf8f4541b14c393f13da |