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
Built Distribution
File details
Details for the file polylog-0.1.6.tar.gz
.
File metadata
- Download URL: polylog-0.1.6.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a848ba5c8d38806e35ae9fdffb0b2f0e06244e568118163318b0964c0db32833 |
|
MD5 | 0a70b8d13774fe1e498f8df8722f986c |
|
BLAKE2b-256 | f22e87d78c472f208bf38233869cbab62b310fa11bfa83ef35708e6d4d98b992 |
File details
Details for the file polylog-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: polylog-0.1.6-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27d8795628b705db8c40083ac5e2beb35b764f3d723812e51cc5d150c7a0b86a |
|
MD5 | 7cdff8db49847c97c961b2c25b2f501e |
|
BLAKE2b-256 | b22d2c6373dc8497e67009c990344800ac4b5359f07a67df138be382e4800180 |