Skip to main content

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


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.2.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file balsa-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for balsa-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6a777243347559c9658909997ffbd7afbf35842dcfe1e935b5196b64cf245eb
MD5 eab5cddb84a637123be4adb096d2f65d
BLAKE2b-256 79f01b6e1a71dd01a652b2b83d4616b6406129ea0c66fa674beb28d20071371b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page