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 details)

Uploaded Source

Built Distribution

SimplePyLogger-0.3.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file SimplePyLogger-0.3.0.tar.gz.

File metadata

  • Download URL: SimplePyLogger-0.3.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.6

File hashes

Hashes for SimplePyLogger-0.3.0.tar.gz
Algorithm Hash digest
SHA256 68f965cd15944188993ac9d2a8278ea8dcfaa11e45b30a7765d7e04fbc524dc3
MD5 15f23b913088a376e6b1f8f32e5f62c9
BLAKE2b-256 e9f3b86d221d7da1083f5e90348c827f51b2e2ad52f401d8d54f9405332e2abb

See more details on using hashes here.

File details

Details for the file SimplePyLogger-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: SimplePyLogger-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.6

File hashes

Hashes for SimplePyLogger-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05098f53533acab87ad66d2125e1c8935fb6df584c22d3f1885fb6a68f9d4be0
MD5 efdec4515ee093473049953126267da4
BLAKE2b-256 8fd31d92466f03296d6980d8115b47372994361b2d4427e1450e87532a29a784

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page