Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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": "./"})

Project details


Download files

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

Files for ytlog, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size ytlog-0.6.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page