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 | 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
silo-0.2.tar.gz
(3.5 kB
view details)
File details
Details for the file silo-0.2.tar.gz
.
File metadata
- Download URL: silo-0.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d6a7cda0d2788e15353080263abdc535925610d8fd658523c9226cd30a19926 |
|
MD5 | e904d700cd73aaf421ec0acdc7f508fe |
|
BLAKE2b-256 | 291f86b5d9757391c75db5d7839a48e3628ad858432c4e9dfdfc3cdddfc059c4 |