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 file and console or GUI logging.
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
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
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
balsa-0.4.0-py3-none-any.whl
(6.6 kB
view details)
File details
Details for the file balsa-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: balsa-0.4.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2826189609f93b53c0a727db032beaa9176137df68ae51a661df2be7b6b3b2ae |
|
MD5 | 523c5423245e73e6722db3cdd34475d6 |
|
BLAKE2b-256 | 0c00d361dd93ccda1e5a8031cfe5e4031cd9a8708ace074d6433dbf6aa74cce2 |