Skip to content
🖨️ Simplest logging API
Python HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
static static Mar 15, 2020
templates Update home.html Mar 24, 2020
.gitignore cleanup Mar 15, 2020
LICENSE license Mar 16, 2020
Pipfile bump dataset Mar 20, 2020
Pipfile.lock bump dataset Mar 20, 2020
Procfile -w Mar 13, 2020
README.md
TODO.txt update TODO Mar 26, 2020
app.py update TODO Mar 26, 2020

README.md

🖨️ print

Simplest logging API

Introduction

Ever wrote print('foo')? (Me neither. 😉) That's what logging is for. Wish you could log things on multiple environments (QA, staging, production) and consume it all in one place? That's what Timber.io, Apex Logs, LogDNA, Datadog, and Papertrail are for. Wish it was as easy as writing print('foo')? That's what print is for!

print is the simplest way to log anything, from anywhere, and consume it all in one place.

Usage

Run print locally (uvicorn app:app) or install it on Heroku. Once you have an instance of print running, use print-python to log anything, anywhere, and consume all those logs on your instance.

Example:

>>> from print import print
>>> print(url='<PRINT_URL>', token='<PRINT_TOKEN>')
>>> print('As easy as rolling off a log')

Requirements

Python 3.7+

Environmental variables

DEBUG=<bool>
USERNAME=<str>
PASSWORD=<str>
API_TOKEN=<str>
SECRET_KEY=<str>
DATABASE_URL=<URL>
ALLOWED_HOSTS=<str>,<str>
You can’t perform that action at this time.