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.

Files for KleenLogger, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size KleenLogger-0.1.2-py3-none-any.whl (3.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size KleenLogger-0.1.2.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page