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
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
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
maxlog-0.0.2-py3-none-any.whl
(7.7 kB
view hashes)