:rat: Ratlog Python library - Application Logging for Rats, Humans and Machines
Project description
:rat: Ratlog.py
Application Logging for Rats, Humans and Machines
Disclaimer: The Ratlog specification is still alpha status and might be subject to breaking changes. Beware, because of that, this API and format might change significantly. We will try our best to tag a stable release as soon as possible. Leave feedback and help us get there faster!
>>> import ratlog
>>> log = ratlog.Log()
>>> log("hello world")
hello world
# Add fields
>>> log("counting", {"count": 1})
counting | count: 1
# Add fields and tag
>>> log("counting", {"count": -1}, "negative")
[negative] counting | count: -1
# Create another logger bound to a tag
>>> warn = ratlog.Log("warning")
>>> warn("disk space low")
[warning] disk space low
# Adding more tags
>>> crit = ratlog.Log("warning", "critical")
>>> crit("shutting down all servers")
[warning|critical] shutting down all servers
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ratlog-0.1.1.tar.gz.
File metadata
- Download URL: ratlog-0.1.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c229caefcd42be1d631e22c695f57fd33c02a2fc022c380cb0862949041046d0
|
|
| MD5 |
07a063994d0e4cbefa6b4a23662be42d
|
|
| BLAKE2b-256 |
38d01fb3396825a20b85b6555695e1aa56cde7f91453519895b3a6f0d7db23bf
|
File details
Details for the file ratlog-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ratlog-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
610eac568045e4da3ad25a077b61859a166b3f6a18a57265668b703066155241
|
|
| MD5 |
3630629c47eeaf9290c1b9bd9ed1618f
|
|
| BLAKE2b-256 |
8c5a97c691044aa14a0b934c229cd74b4cd012cb8a483a8a57d16f684b55397d
|