Skip to main content

Python logging for Humans

Project description

https://travis-ci.org/keitheis/alog.svg?branch=master https://codecov.io/gh/keitheis/alog/branch/master/graph/badge.svg

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

For example

>>> import alog
>>> alog.info("Hi.")
2016-08-18 20:44:30,208 INFO  <stdin> Hi.
>>> def test():
...     alog.info("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
   ...: >>> alog.info("Hi.")
   ...: >>> alog.error("Och!")
   ...: >>> alog.set_level("ERROR")
   ...: >>> alog.info("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.

Source Distribution

alog-0.9.9.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

alog-0.9.9-py2.py3-none-any.whl (6.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file alog-0.9.9.tar.gz.

File metadata

  • Download URL: alog-0.9.9.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for alog-0.9.9.tar.gz
Algorithm Hash digest
SHA256 165c185a4e38fdf919b706e294bb63a432a678c4322ca88fd0d85a5ade07ac94
MD5 ff68cdd648747b3cc9a10cd6abf58201
BLAKE2b-256 e5048dde7291e555ba4edb7bc1952f5492ffc9c50cf488342288fdaeeb88e4b3

See more details on using hashes here.

File details

Details for the file alog-0.9.9-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for alog-0.9.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5d2f65e3439e5a2c4e7c231eb3c3519c661f2fc1d4ccb9f8c4ad939a57677cd6
MD5 f1f6b2a1821eaf692a462bb29947f0ae
BLAKE2b-256 ca634a63b72d8faedbbf01d445edcfdcf89abcd8aca2a9c28d26ce52bd6541a5

See more details on using hashes here.

Supported by

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