Skip to main content

(Almost) out-of-the box logging

Project description

(Almost) out-of-the box logging. Frustum is a wrapper around the standard’s library logging, so you don’t have to write the same boilerplate again.

Install:

pip install frustum

Usage:

from frustum import Frustum

# Initialize with logger name and level
frustum = Frustum('logger_name', 'debug')

# Register all the events that you want within frustum
frustum.register_event('setup', 'info', 'Frustum has been setup in {}')

# Start the logger
frustum.start_logger()

# Now you can use the registered events in this way
frustum.log('setup', 'readme')

# The previous call would output:
# INFO:app:Frustum has been setup in readme
# into your stdout (as per standard logging configuration)

Project details


Download files

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

Files for frustum, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size frustum-0.0.6-py3-none-any.whl (4.5 kB) File type Wheel Python version 3.6 Upload date Hashes View
Filename, size frustum-0.0.6.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page