Skip to main content

Clean Logger system for python application.

Project description

GitHub license GitHub repo size GitHub repo size

Kleen-Logger

Simple python library that handle Logging of a script.

Table of contents

Installation

You can install the module via pip :
pip install kleenlogger

or via wheel file From PyPi :

pip install wheel
python -m wheel install wheel_file.whl

Documentation

The aim of kleenlogger is to make it simple for the user to get script made logging.
First import it to your script :

from kleenlogger import kleenlogger, KleenLogger

Then you can setup the logger format with the init_logger() function :

kleenlogger.init_logger(
    "AppName",
    KleenLogger.DEBUG,
    "[%(asctime)s][%(levelname)s] : [%(filename)s][%(funcName)s] : %(message)s",
    "%Y-%m-%d %H:%M:%S"
)

Now you can use the logger variable of kleentimer like a python logging :

kleenlogger.logger.info("This is an info logging message")
kleenlogger.logger.error("Thiss is an error logging message")

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

KleenLogger-0.1.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

KleenLogger-0.1.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file KleenLogger-0.1.2.tar.gz.

File metadata

  • Download URL: KleenLogger-0.1.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for KleenLogger-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3b3790edf6f60be6bb8c75bcaa5f12a1dc1cb7e309186462b165e32eea198cf2
MD5 a52a391963801987a1af910f9e5c1e91
BLAKE2b-256 5cda459cf6e866c47f69199ac99cc5a1495bc736f2faee9d30ec661ce8e7c281

See more details on using hashes here.

File details

Details for the file KleenLogger-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: KleenLogger-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for KleenLogger-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5d31645eee796148b735803d70f895f1e64d48c52cab5434f400b6668cf06b9a
MD5 b29833c165a850a2cb11c3a0c54b7b11
BLAKE2b-256 23d99d4541298a6a25fd3119c512aaa993c096ab1b870015dec5730e87287c7e

See more details on using hashes here.

Supported by

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