loggers for Python2&3
Project description
Python Loggers , Easy to use
Usage
- pip install pyloggers
from __future__ import (absolute_import, unicode_literals)
from pyloggers import CONSOLE
def func(a, b, c):
CONSOLE.info("====func start . {}====".format(locals()))
try:
raise ValueError("value error")
except ValueError as e:
CONSOLE.exception(e)
def test_a():
CONSOLE.info("==== start ===")
func(1, 1, 1)
CONSOLE.info("==== end ==")
def main():
test_a()
func(1, 1, 1)
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
pyloggers-0.1.tar.gz
(2.7 kB
view hashes)