Skip to main content

A custom python logging package

Project description

PolyLog

PolyLog is a custom logging package designed to support your application development process. Built with versatility in mind, this package provides comprehensive, formatted logging in Python. It includes features such as:

  • Customizable formatting
  • Thread-safe logging
  • Trace and Span ID integration
  • Color-coded log levels
  • Optional local log file storage

This package forms part of a larger multi-language (polylog) logging framework, with companion modules in Go, Rust, and TypeScript.

Installation

To install PolyLog, you can simply use pip:

pip install polylog

Usage

Here is a basic usage example:

from polylog import setup_logger

# Set up the logger
logger = setup_logger(__name__)

# Use the logger
logger.info("This is an information message")
logger.error("This is an error message")

In this example, setup_logger is a function that sets up the logger and returns it. You can then use methods like logger.info and logger.error to log messages.

Contact

If you have any questions, feel free to reach out at GitHub.

License

This project is licensed under the terms of the MIT license.

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

polylog-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

polylog-0.0.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file polylog-0.0.2.tar.gz.

File metadata

  • Download URL: polylog-0.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for polylog-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f44cfcedc7a448ed9e9e376b8816c76cab655d37e2d22ab17c8b302c956b7bf5
MD5 d70fccaeea6d3541b94cbcfb0ab9c681
BLAKE2b-256 a9ce225caff03732aaf7d53afc9ca80458c764a5a9791263d0affa8fd673712a

See more details on using hashes here.

File details

Details for the file polylog-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: polylog-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for polylog-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c061002a5926a63e98f4e3e3f51a3baf51bdc8f290f4e62e39be7c64a6157890
MD5 0a149143194d27fbbca7c8acef5645a4
BLAKE2b-256 0f4fc3cdaf1b0d0dcceb00a5e136a14c92cef2aaca597f83fe677d2b2be13397

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