Skip to content

digitalmensch/silo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simply Logging

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

https://travis-ci.org/digitalmensch/silo.svg?branch=master https://coveralls.io/repos/github/digitalmensch/silo/badge.svg?branch=master

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.

About

Simply Logging

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages