Skip to main content

Python logging for Humans

Project description

Python logging for Humans. It’s very easy to use in an application setting.

For example

>>> import alog
2016-08-18 20:44:30,208 INFO  <stdin> Hi.
>>> def test():
..."Test 1")
...     alog.error("Test 2")
>>> test()
2016-08-18 20:45:19,372 INFO  <stdin:2> Test 1
2016-08-18 20:45:19,372 ERROR <stdin:3> Test 2
>>> alog.set_level("ERROR")
>>> test()
2016-08-18 20:45:41,788 ERROR <stdin:3> Test 2

In IPython

In [1]: >>> import alog
   ...: >>>"Hi.")
   ...: >>> alog.error("Och!")
   ...: >>> alog.set_level("ERROR")
   ...: >>>"Hi.")
   ...: >>> alog.error("Och!")
2016-08-18 20:42:57,801 INFO  <IPython:2> Hi.
2016-08-18 20:42:57,801 ERROR <IPython:3> Och!
2016-08-18 20:42:57,802 ERROR <IPython:6> Och!

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 alog, version 0.9.9
Filename, size File type Python version Upload date Hashes
Filename, size alog-0.9.9-py2.py3-none-any.whl (6.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size alog-0.9.9.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page