Skip to main content

Utility package for logging in Python

Project description

tentalog

Configure your logging with a YAML file. A simple and light weight logging configuration is provided by default.

Getting Started

To install tentalog in your environment you can simply use

pip install tentalog

Logging with Tentacle

The Tentacle is the single unit of tentalog, managing a single logger. To start logging with tentacle you can do something like this:

from tentalog import Tentacle

tentacle = Tentacle(name='mylogger')

logger = tentacle.logger
logger.info("Hello World")

This code will use the tentalog default configuration, that contains the configuration of two logging handlers, one for the console and one for a time based file rotation of 15 days. If the "mylogger" logger is not found in configuration, the "root" logger will be used and a warning message will be showed. If the name of the logger is specified, the "root" logger will be used. If you want to use a custom configuration you can just initialize your Tentacle in this way:

tentacle = Tentacle(path='myconf.yaml')

Versioning

We use SemVer for versioning.

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 tentalog, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size tentalog-0.2.1-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size tentalog-0.2.1.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

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