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)
Built Distribution
Close
Hashes for SimplePyLogger-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05098f53533acab87ad66d2125e1c8935fb6df584c22d3f1885fb6a68f9d4be0 |
|
MD5 | efdec4515ee093473049953126267da4 |
|
BLAKE2b-256 | 8fd31d92466f03296d6980d8115b47372994361b2d4427e1450e87532a29a784 |