Skip to main content

No project description provided

Project description

Blaster Logger

Turn-key logging solution based on loguru

Installation

pip install blaster_logger

Usage

As logger

from blaster_logger import log

log.debug('This is DEBUG level message')
log.info('This is INFO level message')
log.warning('This is a warning')
log.error('This is an error message')
log.critical('This is a critical level message')

try:
    raise RuntimeError('Error message')
except RuntimeError as e:
    log.trace(e) # This is a traceback log

As decorator

from blaster_logger import log

@log.this
def some_func(x):
    return x * 2

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blaster_logger-0.1.0.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

blaster_logger-0.1.0-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

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