Skip to main content

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.

Source Distribution

ytlog-0.6.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file ytlog-0.6.tar.gz.

File metadata

  • Download URL: ytlog-0.6.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ytlog-0.6.tar.gz
Algorithm Hash digest
SHA256 acce1ae30ecb7e1e4adc3359fd48437c70e4e91de9c54ad00489f37da2dfbcc3
MD5 10aa5c8fe1f52efad5bc52ea5d52990a
BLAKE2b-256 874dd7acc36c8f62ea599a190870538048690f1a9b35731084547992080926e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page