logging utility
Project description
balsa (logging utility)
Simple to use package that sets up Python logging. With just a few lines of code get well formatted logging to the console, log file, popup windows and exception services.
Here is a short Presentation on Balsa.
Installation
pip install balsa
Major Features
Simple to use. Add full-featured Python logging in just a few lines of code.
Sane default log levels. Single verbose flag. (All levels can be overridden if desired.)
Both console (stdout) and GUI (popup window) support.
Log file support. Uses appdirs for log file paths.
Sentry support. Just provide your Sentry DSN.
Informative log message formatting (or you can change it if you like).
Cross platform (Windows, Linux, MacOS). Pure Python.
Simple Example
from balsa import get_logger, Balsa
application_name = 'example'
log = get_logger(application_name)
def main():
balsa = Balsa(application_name, 'james abel')
balsa.init_logger()
log.error('my error example')
This will yield output of this form:
2018-04-15 11:25:58,507 - example - balsa_simple_example.py - 12 - main - ERROR - my error example
Releases
0.6 : Add rate control to popup windows. Automated GUI testing.
0.5 : Allow more than one logger.
0.3 : Initial release.
Where did the name come from?
Balsa lumber is very soft and light, with a coarse, open grain. The Balsa package is light weight, malleable, and open source.
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 Distributions
Built Distribution
File details
Details for the file balsa-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: balsa-0.7.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e899d41b4861db08dd81bde22730f366f46f6c5441fb669214220b362cfbb7a |
|
MD5 | 3dd3c80cb6bf55f7d7188443fd6ab27b |
|
BLAKE2b-256 | bf3baaee915fcae351ea2de69851072b467e7554bfef654650615f378f9d1fa8 |