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.

Source Distribution

tentalog-0.2.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

tentalog-0.2.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file tentalog-0.2.1.tar.gz.

File metadata

  • Download URL: tentalog-0.2.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for tentalog-0.2.1.tar.gz
Algorithm Hash digest
SHA256 400a079b0b54cecc7673393f603b736a299847a141ff9fee350fb37e4a8d2e67
MD5 d8700878ba4a680f54ec8e7d1dd9cbf9
BLAKE2b-256 c71dbb4a95ee0181628dddebb1defe48d4142767f1c7dabebbe42a0ab7393fed

See more details on using hashes here.

File details

Details for the file tentalog-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: tentalog-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for tentalog-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 84a282dbc8727885e25a409ba623687dac111431dec427d2dd580f3b9d518971
MD5 5ce700415542c29e55b0f4a4b42534af
BLAKE2b-256 052faa2a5ae05de2391305586a80264f16d5df18412652b7f0735b5788c31da3

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