Skip to main content

:rat: Ratlog Python library - Application Logging for Rats, Humans and Machines

Project description

:rat: Ratlog.py

Application Logging for Rats, Humans and Machines

Build Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ratlog, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size ratlog-0.1.1-py3-none-any.whl (2.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ratlog-0.1.1.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page