Skip to main content

Simple Python logger.

Project description

Simple Python Logger

SimplePyLogger is a very simple logging library for Python.

Its main functionalities are based on the Python logging library with some tweaks.

Currently, it is based on the Singleton pattern. So, only one logger instance can be created.

Install

First, update pip by running python -m pip install --upgrade pip. Then, run python -m pip install SimplePyLogger.

(Very short) Tutorial

First create a Logger instance:

from PyLogger import Logger
logger = Logger() # using current work directory
logger = Logger(path_to_log_file) # or using custom path

Then log whatever you want to:

logger.info("Some info")
logger.warning("Some warning")
logger.error("Some error")

It currently accepts prefix, end and sep kwargs for logging.

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

SimplePyLogger-0.3.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

SimplePyLogger-0.3.0-py3-none-any.whl (5.0 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