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

Uploaded Source

Built Distribution

polylog-0.1.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for polylog-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7ffcb6d6f140a30c5aaa999ca316f0af803e1176ff1951a893bff48170349dce
MD5 1a1ea4c4aeb490dacb761655302b6a2a
BLAKE2b-256 ea8033a83991835b362ce14a7ad2874638cca57ef611fd4209f1057ddd417843

See more details on using hashes here.

File details

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

File metadata

  • Download URL: polylog-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bcb2f190b9508abcc1ff9068f8ccdc1290ac9b7d7c763d4dfceec92ca5f3a485
MD5 81c9f3883cd37e918e86484fb8322cef
BLAKE2b-256 705dd1e9c8bb59a67e320329781f6ba048a256eb23895cbaf6a5e62730d0c35d

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