Skip to main content

Provides the Log class is a custom logger implementation using the loguru library. It provides a flexible and customizable logging solution for projects.

Project description

maxlog

PyPI version

Installation

pip install maxlog

Usage

# Create an instance of the Log class
log = Log(rich_level="INFO", project_dir="/path/to/project")

# Log messages at different levels
log.info("This is an informational message")
log.warning("This is a warning message")
log.error("This is an error message")

# Change the rich level to log only messages with level DEBUG and above
log.rich_level = "DEBUG"

# Log a message with level DEBUG
log.debug("This is a debug message")

Output

Created by Max Ludden

Max Ludden's Logo

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

maxlog-0.0.2.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

maxlog-0.0.2-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

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