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.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

polylog-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for polylog-0.0.1.tar.gz
Algorithm Hash digest
SHA256 71059f2c2625cf744e8f38f4086b2b12e5a672b2852e657508755eaa40b66307
MD5 b1a0ffa854139962fcdc345bbd4b060e
BLAKE2b-256 e9562864e3875546ba1f6347f39ab24903ff3321a444e39ec1d07520f9417fcb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for polylog-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 298fc798f6f28b85f0850d29724e207196273e77a3365e43649146532de7ec6a
MD5 e9f889d95fada6409c4c65f0ad941411
BLAKE2b-256 97b04fe20b8ba0109f9131c169d6d762e97a1a1ab21bce8c482ceb90c7958d69

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