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

Uploaded Source

Built Distribution

polylog-0.0.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polylog-0.0.3.tar.gz
  • Upload date:
  • Size: 4.9 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.3.tar.gz
Algorithm Hash digest
SHA256 a7e37ff9eff2acce8e91bef7a56ae4428c6a36674dc45e72c9c4e6ed98a8fa18
MD5 93f3bfe4c2131b6b1d7f71e5691dfd5d
BLAKE2b-256 ec04621538ab319150dfdb80dbeb6d902895f95ee43cb38a8946309d0fef6418

See more details on using hashes here.

File details

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

File metadata

  • Download URL: polylog-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4047e3c7aeeb3341014759c9792f2e5717a7b0deb3555b31b83e1f3ac70c341a
MD5 e282bbf39f4f146f0b7cc251cf492d85
BLAKE2b-256 465fa153c9aa594d72b07172e76143f5992fab414a5a183187a60e4756ff3045

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