This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

ytlog - log module for humans.

Project Description
ytlog - log module for humans
============================

We use logging everyday, bug it's easy to forget how to use buildin
logging module of Python, because the configuration looks complicated.

So I copy log.py module from [Tornado(github)](https://github.com/facebook/tornado)


pip install ytlog


How to use
----------

from ytlog import get_logger

log = get_logger({"name": "app"})
log.info("Mission starts.")


Then we will see logging in console and log file under directory /data/logs/

![screenshot](./screenshot.png)

So easy!


If you want to change log file path, just add arg "dir"

e.g.

log = get_logger({"name": "app", "dir": "./"})
Release History

Release History

This version
History Node

0.6

History Node

0.5

History Node

0.4

History Node

0.3

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ytlog-0.6.tar.gz (4.7 kB) Copy SHA256 Checksum SHA256 Source Nov 27, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting