Python logging for Humans
Project description
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
Release history Release notifications | RSS feed
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.8.tar.gz
(6.0 kB
view details)
Built Distribution
File details
Details for the file alog-0.9.8.tar.gz
.
File metadata
- Download URL: alog-0.9.8.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c61880edc6e8931b49e48ce665946b4537a6156688b0b2e90d809bdc194dc208
|
|
MD5 |
00f3ddc61d9816960b76bad0dd447b79
|
|
BLAKE2b-256 |
799df0e32ae43a0ba180b718134f9cd5324a5ac390df5d571bdac1e3da715f1e
|
File details
Details for the file alog-0.9.8-py2.py3-none-any.whl
.
File metadata
- Download URL: alog-0.9.8-py2.py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5983f2fd04457c9c8970cc0a68f5cf0b2a8147ab19cc3780f0ee25eebddb4205
|
|
MD5 |
514f9c50a7c51becfaa3c2414c04fa48
|
|
BLAKE2b-256 |
e997eef0350cd67cc6abcf709ef9f11ada9e819be0b55194c654f92894e6266e
|