Skip to main content

Simply Logging

Project description

Sometimes you just don’t want to configure logging. Documentation

Features

  • Configuration using ENV variables
  • Low overhead debug operation (2 op codes)
  • Audit functions to track business operations

Configuration

export SILO_0=syslog_format:stderr
export SILO_1=json_format:stderr
export DEBUG=0

Examples

from silo import info, debug, audit

def hello(who='World'):
    info(f'Hello, {who}!')
    debug('done')

hello()

@audit
def login(username, password):
    # do smart stuff here...
    return False

login('duckie', 'secret')

This library is MIT licensed.

Project details


Release history Release notifications

This version
History Node

0.2

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
silo-0.2.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None Jan 7, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page